[HUDI-2314] Add support for DynamoDb based lock provider (#3486)
- Co-authored-by: Wenning Ding <wenningd@amazon.com> - Co-authored-by: Sivabalan Narayanan <n.siva.b@gmail.com>
This commit is contained in:
@@ -72,7 +72,7 @@ public class LockManager implements Serializable, AutoCloseable {
|
||||
LOG.info("Retrying to acquire lock...");
|
||||
Thread.sleep(waitTimeInMs);
|
||||
retryCount++;
|
||||
} catch (InterruptedException e) {
|
||||
} catch (HoodieLockException | InterruptedException e) {
|
||||
if (retryCount >= retries) {
|
||||
throw new HoodieLockException("Unable to acquire lock, lock object ", e);
|
||||
}
|
||||
|
||||
@@ -53,7 +53,6 @@ import static org.apache.hudi.common.config.LockConfiguration.ZK_LOCK_KEY_PROP_K
|
||||
import static org.apache.hudi.common.config.LockConfiguration.ZK_PORT_PROP_KEY;
|
||||
import static org.apache.hudi.common.config.LockConfiguration.ZK_SESSION_TIMEOUT_MS_PROP_KEY;
|
||||
|
||||
|
||||
/**
|
||||
* Hoodie Configs for Locks.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user