gabriellefu commented on code in PR #22282:
URL: https://github.com/apache/kafka/pull/22282#discussion_r3299424197
##########
streams/src/main/java/org/apache/kafka/streams/processor/internals/TaskManager.java:
##########
@@ -2048,7 +2058,9 @@ private void maybeSetFirstException(final boolean
ignoreTaskMigrated,
final RuntimeException exception,
final
AtomicReference<RuntimeException> firstException) {
if (!ignoreTaskMigrated || !(exception instanceof
TaskMigratedException)) {
- firstException.compareAndSet(null, exception);
+ if (!firstException.compareAndSet(null, exception)) {
+ firstException.get().addSuppressed(exception);
Review Comment:
added the check, thanks!
--
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]