You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@gobblin.apache.org by GitBox <gi...@apache.org> on 2021/01/13 20:01:07 UTC

[GitHub] [incubator-gobblin] sv2000 commented on a change in pull request #3200: [GOBBLIN-1359] Fix the error that IOException thrown by writer be swallowed by Reactivex

sv2000 commented on a change in pull request #3200:
URL: https://github.com/apache/incubator-gobblin/pull/3200#discussion_r556794214



##########
File path: gobblin-runtime/src/main/java/org/apache/gobblin/runtime/fork/Fork.java
##########
@@ -227,7 +227,10 @@ public void consumeRecordStream(RecordStreamWithMetadata<D, S> stream)
 
           r.ack();
         }
-      }, e -> logger.error("Failed to process record.", e),
+      }, e -> {
+          logger.error("Failed to process record.", e);
+          throw(new RuntimeException(e));

Review comment:
       Any reason why it is being wrapped into RuntimeException? Can we just rethrow e as is?




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org