Description
As a best practice - Reentrant lock has to be acquired before try clause.
https://stackoverflow.com/questions/31058681/java-locking-structure-best-pattern
There are many places where lock is obtained inside try.
try { this.writeLock.lock(); .... } finally { this.writeLock.unlock(); }
Attachments
Attachments
Issue Links
- is duplicated by
-
YARN-10347 Fix double locking in CapacityScheduler#reinitialize in branch-3.1
- Resolved