Skip to content

Commit

Permalink
recover to lock
Browse files Browse the repository at this point in the history
  • Loading branch information
xuzifu666 committed May 29, 2024
1 parent e69b175 commit 9113b4b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public void lock() {
if (!getLockProvider().tryLock(writeConfig.getLockAcquireWaitTimeoutInMs(), TimeUnit.MILLISECONDS)) {
metrics.updateLockNotAcquiredMetric();
if (getLockProvider() instanceof FileSystemBasedLockProvider) {
fs.delete(new Path(((FileSystemBasedLockProvider) getLockProvider()).getCurrentOwnerLockInfo()), true);
fs.delete(new Path(((FileSystemBasedLockProvider) getLockProvider()).getLock()), true);
LOG.warn("Lock is FileSystemBasedLockProvider, had deleted lock files to avoid blocking next write job");
}
throw new HoodieLockException("Unable to acquire the lock. Current lock owner information : "
Expand Down

0 comments on commit 9113b4b

Please sign in to comment.