zuston commented on code in PR #2816:
URL: https://github.com/apache/uniffle/pull/2816#discussion_r4255403396


##########
client/src/main/java/org/apache/uniffle/client/impl/DecompressionWorker.java:
##########
@@ -160,10 +161,11 @@ public void add(int batchIndex, ShuffleDataResult 
shuffleDataResult) {
                     return dst;
                   },
                   getOrCreateExecutor())
-              .exceptionally(
-                  ex -> {
-                    LOG.error("Errors on decompressing shuffle block", ex);
-                    return null;
+              .whenComplete(

Review Comment:
   without this PR, if any failure happens, the upper invoking side will get 
the null rather than direct exception, this will fast fail due to the blocking 
checking mechanism, this will not make the data lost. 
   with this PR, when the invoking side get the decompressed data, it will fast 
fail due to the inner exception. that will make more striaghtforward.



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to