Skip to content

Commit

Permalink
Rethrowing Exception from CassandraIO's ReadFn
Browse files Browse the repository at this point in the history
  • Loading branch information
VardhanThigle committed Mar 6, 2025
1 parent c9b55a3 commit 5e72811
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class ReadFn<T> extends DoFn<Read<T>, T> {
private static final Logger LOG = LoggerFactory.getLogger(ReadFn.class);

@ProcessElement
public void processElement(@Element Read<T> read, OutputReceiver<T> receiver) {
public void processElement(@Element Read<T> read, OutputReceiver<T> receiver) throws Exception {
try {
Session session = ConnectionManager.getSession(read);
Mapper<T> mapper = read.mapperFactoryFn().apply(session);
Expand Down Expand Up @@ -89,6 +89,7 @@ public void processElement(@Element Read<T> read, OutputReceiver<T> receiver) {
}
} catch (Exception ex) {
LOG.error("error", ex);
throw ex;
}
}

Expand Down

0 comments on commit 5e72811

Please sign in to comment.