danny0405 commented on code in PR #10050:
URL: https://github.com/apache/hudi/pull/10050#discussion_r1390314823


##########
hudi-utilities/src/main/java/org/apache/hudi/utilities/UtilHelpers.java:
##########
@@ -605,7 +605,10 @@ public static int retry(int maxRetryCount, 
CheckedSupplier<Integer> supplier, St
         ret = supplier.get();
       } while (ret != 0 && maxRetryCount-- > 0);
     } catch (Throwable t) {
-      LOG.error(errorMessage, t);
+      LOG.error(errorMessage);
+      if (t instanceof HoodieException) {
+        throw new HoodieException(errorMessage, t);
+      }

Review Comment:
   Let's not modify the very basic utilities, it is shared by many components.



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

Reply via email to