Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.4.0
-
Reviewed
Description
During patching the datanode fine-grained locking, found there is a redundant lock in DataSetLockManager#removeLock, and the code as bellow:
@Override public void removeLock(LockLevel level, String... resources) { String lockName = generateLockName(level, resources); try (AutoCloseDataSetLock lock = writeLock(level, resources)) { // Here, this lock is redundant. lock.lock(); lockMap.removeLock(lockName); } }
Attachments
Issue Links
- relates to
-
HDFS-15382 Split one FsDatasetImpl lock to volume grain locks.
- Resolved
- links to