1
0

[HUDI-3940] Fix retry count increment in lock manager (#5387)

This commit is contained in:
Sagar Sumit
2022-04-22 02:22:05 +05:30
committed by GitHub
parent 4e1ac467da
commit de5fa1fe03

View File

@@ -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) {