[HUDI-4409] Improve LockManager wait logic when catch exception (#6122)
This commit is contained in:
@@ -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++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user