Sanil15 commented on code in PR #23221:
URL: https://github.com/apache/beam/pull/23221#discussion_r977883837
##########
runners/samza/src/main/java/org/apache/beam/runners/samza/runtime/OpAdapter.java:
##########
@@ -102,7 +115,16 @@ public synchronized
CompletionStage<Collection<OpMessage<OutT>>> apply(OpMessage
String.format("Unexpected input type: %s", message.getType()));
}
} catch (Exception e) {
- LOG.error("Op {} threw an exception during processing",
this.getClass().getName(), e);
+ LOG.error("Op {} threw an exception during processing",
transformFullName, e);
+ e.addSuppressed(
+ new RuntimeException(
+ String.format("Op: %s threw an exception during processing",
transformFullName)));
+ exceptionListeners.forEach(
Review Comment:
good call, done
##########
runners/samza/src/main/java/org/apache/beam/runners/samza/runtime/OpAdapter.java:
##########
@@ -102,7 +115,16 @@ public synchronized
CompletionStage<Collection<OpMessage<OutT>>> apply(OpMessage
String.format("Unexpected input type: %s", message.getType()));
}
} catch (Exception e) {
- LOG.error("Op {} threw an exception during processing",
this.getClass().getName(), e);
+ LOG.error("Op {} threw an exception during processing",
transformFullName, e);
+ e.addSuppressed(
+ new RuntimeException(
+ String.format("Op: %s threw an exception during processing",
transformFullName)));
Review Comment:
done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]