Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
Change to ZK nodes guaranteed delete instead of background delete.
Browse files Browse the repository at this point in the history
  • Loading branch information
kishorebanala committed Oct 3, 2019
1 parent 1368cc4 commit e570e95
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public void releaseLock(String lockId) {
public void deleteLock(String lockId) {
try {
LOGGER.debug("Deleting lock {}", zkPath.concat(lockId));
client.delete().inBackground().forPath(zkPath.concat(lockId));
client.delete().guaranteed().forPath(zkPath.concat(lockId));
} catch (Exception e) {
LOGGER.debug("Failed to removeLock: ", e);
}
Expand Down

0 comments on commit e570e95

Please sign in to comment.