xushiyan commented on code in PR #7572:
URL: https://github.com/apache/hudi/pull/7572#discussion_r1060804456


##########
hudi-common/src/main/java/org/apache/hudi/common/util/RetryHelper.java:
##########
@@ -69,12 +69,12 @@ public RetryHelper(long maxRetryIntervalMs, int 
maxRetryNumbers, long initialRet
     this.taskInfo = taskInfo;
   }
 
-  public RetryHelper<T> tryWith(CheckedFunction<T> func) {
+  public RetryHelper<T, R> tryWith(CheckedFunction<T, R> func) {
     this.func = func;
     return this;
   }
 
-  public T start(CheckedFunction<T> func) throws IOException {
+  public <R extends Exception> T start(CheckedFunction<T, R> func) throws R {

Review Comment:
   /nit `<R extends Exception>` here is redundant. `CheckedFunction` already 
declares `R`



-- 
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: commits-unsubscr...@hudi.apache.org

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

Reply via email to