zuston commented on code in PR #1411:
URL: 
https://github.com/apache/incubator-uniffle/pull/1411#discussion_r1443622697


##########
client-spark/spark3/src/main/java/org/apache/spark/shuffle/DelegationRssShuffleManager.java:
##########
@@ -167,7 +168,7 @@ private boolean tryAccessCluster() {
             "Fail to access cluster {} using {} for {}",
             coordinatorClient.getDesc(),
             accessId,
-            e.getMessage());
+            ExceptionUtils.getStackTrace(e));

Review Comment:
   `e` is enough.



##########
internal-client/src/main/java/org/apache/uniffle/client/impl/grpc/ShuffleServerGrpcNettyClient.java:
##########
@@ -154,7 +155,7 @@ public RssSendShuffleDataResponse 
sendShuffleData(RssSendShuffleDataRequest requ
             maxRetryAttempts,
             t -> !(t instanceof OutOfMemoryError));
       } catch (Throwable throwable) {
-        LOG.warn(throwable.getMessage());
+        LOG.warn(ExceptionUtils.getStackTrace(throwable));

Review Comment:
   why not using `throwable` directly ? 



##########
internal-client/src/main/java/org/apache/uniffle/client/impl/grpc/ShuffleServerGrpcClient.java:
##########
@@ -461,7 +462,7 @@ public RssSendShuffleDataResponse 
sendShuffleData(RssSendShuffleDataRequest requ
             maxRetryAttempts,
             t -> !(t instanceof OutOfMemoryError));
       } catch (Throwable throwable) {
-        LOG.warn(throwable.getMessage());
+        LOG.warn(ExceptionUtils.getStackTrace(throwable));

Review Comment:
   ditto



##########
common/src/main/java/org/apache/uniffle/common/util/RetryUtils.java:
##########
@@ -76,19 +76,24 @@ public static <T> T retryWithCondition(
       Function<Throwable, Boolean> isRetryFunc)
       throws Throwable {
     int retry = 0;
+    Throwable previousThrowable = null;
     while (true) {
       try {
         return cmd.execute();
       } catch (Throwable t) {
         retry++;
         if (isRetryFunc.apply(t) && retry < retryTimes) {
+          previousThrowable = t;
           LOG.info("Retry due to Throwable, " + t.getClass().getName() + " " + 
t.getMessage());

Review Comment:
   This has thrown the exception.



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