alexeykudinkin commented on code in PR #5387: URL: https://github.com/apache/hudi/pull/5387#discussion_r855360523
########## hudi-client/hudi-client-common/src/main/java/org/apache/hudi/client/transaction/lock/LockManager.java: ########## @@ -70,11 +70,12 @@ public void lock() { } LOG.info("Retrying to acquire lock..."); Thread.sleep(maxWaitTimeInMs); - retryCount++; } catch (HoodieLockException | InterruptedException e) { if (retryCount >= maxRetries) { throw new HoodieLockException("Unable to acquire lock, lock object ", e); } + } finally { + retryCount++; Review Comment: No need to address in this PR, but it's better to increment the count _before_ the attempt -- 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