1
0

[HUDI-4409] Improve LockManager wait logic when catch exception (#6122)

This commit is contained in:
liujinhui
2022-07-18 22:45:52 +08:00
committed by GitHub
parent 9282611bae
commit 1959b843b7

View File

@@ -74,6 +74,11 @@ public class LockManager implements Serializable, AutoCloseable {
if (retryCount >= maxRetries) {
throw new HoodieLockException("Unable to acquire lock, lock object ", e);
}
try {
Thread.sleep(maxWaitTimeInMs);
} catch (InterruptedException ex) {
// ignore InterruptedException here
}
} finally {
retryCount++;
}