alexr17 commented on code in PR #13126:
URL: https://github.com/apache/hudi/pull/13126#discussion_r2040699728
##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/client/transaction/lock/StorageBasedLockProvider.java:
##########
@@ -193,7 +196,7 @@ public boolean tryLock(long time, TimeUnit unit) {
if (tryLock()) {
return true;
}
- Thread.sleep(DEFAULT_LOCK_ACQUISITION_BUFFER_MS);
+
Thread.sleep(Long.parseLong(DEFAULT_LOCK_ACQUIRE_RETRY_WAIT_TIME_IN_MILLIS));
Review Comment:
Ok I actually re-reviewed the code and this follows the same pattern as
dynamodblockclient. Which has a default buffer of 1000s and sleeps each time it
is unable to acquire the lock. Adding screenshots below
--
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]