amogh-jahagirdar commented on code in PR #10337: URL: https://github.com/apache/iceberg/pull/10337#discussion_r1601983226
########## core/src/main/java/org/apache/iceberg/ClientPoolImpl.java: ########## @@ -70,37 +71,29 @@ public <R> R run(Action<R, C, E> action, boolean retry) throws E, InterruptedExc try { return action.run(client); } catch (Exception exc) { - if (!retry || !isConnectionException(exc)) { - throw exc; + if (retry && isConnectionException(exc)) { Review Comment: I'm good with the implementation, I also actually find it a bit more readable when expressed as `if (retry && isConnectionException` -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org