Skip to content

Commit

Permalink
Protect against null tserver lock var in TabletServerLocks (apache#4878)
Browse files Browse the repository at this point in the history
  • Loading branch information
dlmarion authored Sep 16, 2024
1 parent e981057 commit b93939d
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,12 @@ public static void execute(final ServerContext context, final String lock, final
} else {
if (lock == null) {
printUsage();
} else {
ServiceLock.ServiceLockPath path = ServiceLock.path(tserverPath + "/" + lock);
ServiceLock.deleteLock(zoo, path);
System.out.printf("Deleted %s", path);
}

ServiceLock.ServiceLockPath path = ServiceLock.path(tserverPath + "/" + lock);
ServiceLock.deleteLock(zoo, path);
System.out.printf("Deleted %s", path);
}
}

Expand Down

0 comments on commit b93939d

Please sign in to comment.