1
0

[HUDI-3064] Fixing a bug in TransactionManager and FileSystemTestLock (#4372)

This commit is contained in:
Sivabalan Narayanan
2021-12-18 08:52:11 -08:00
committed by GitHub
parent 733732be7b
commit dc40397fa9

View File

@@ -76,7 +76,7 @@ public class FileSystemBasedLockProviderTestClass implements LockProvider<String
try {
int numRetries = 0;
while (fs.exists(new Path(lockPath + "/" + LOCK_NAME))
&& (numRetries <= lockConfiguration.getConfig().getInteger(LOCK_ACQUIRE_NUM_RETRIES_PROP_KEY))) {
&& (numRetries++ <= lockConfiguration.getConfig().getInteger(LOCK_ACQUIRE_NUM_RETRIES_PROP_KEY))) {
Thread.sleep(lockConfiguration.getConfig().getInteger(LOCK_ACQUIRE_RETRY_WAIT_TIME_IN_MILLIS_PROP_KEY));
}
synchronized (LOCK_NAME) {