[HUDI-3940] Fix retry count increment in lock manager (#5387)
This commit is contained in:
@@ -70,11 +70,12 @@ public class LockManager implements Serializable, AutoCloseable {
|
||||
}
|
||||
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++;
|
||||
}
|
||||
}
|
||||
if (!acquired) {
|
||||
|
||||
Reference in New Issue
Block a user