Skip to content

Commit

Permalink
improve remove lock log
Browse files Browse the repository at this point in the history
  • Loading branch information
huangzhaobo99 committed Jan 4, 2025
1 parent ec398ba commit faf0745
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,9 @@ public void removeLock(LockLevel level, String... resources) {
try (AutoCloseDataSetLock lock = writeLock(level, resources)) {
lockMap.removeLock(lockName);
}
if (openLockTrace) {
LOG.info("Removed {} lock, lock name: {}", level.name(), lockName);
}
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -645,8 +645,6 @@ public void removeVolumes(
List<String> allSubDirNameForDataSetLock = datasetSubLockStrategy.getAllSubLockName();
for (String dir : allSubDirNameForDataSetLock) {
lockManager.removeLock(LockLevel.DIR, bp, storageUuid, dir);
LOG.info("Removed DIR lock for bpid:{}, volume storageid:{}, dir:{}",
bp, storageUuid, dir);
}
lockManager.removeLock(LockLevel.VOLUME, bp, storageUuid);
}
Expand Down

0 comments on commit faf0745

Please sign in to comment.