YARN-10347. Fix double locking in CapacityScheduler#reinitialize in branch-3.1.

(cherry picked from commit 4fa8055aa4)
This commit is contained in:
Masatake Iwasaki 2020-07-08 23:22:47 +09:00
parent aeb3c4a362
commit 936dece92b
1 changed files with 0 additions and 1 deletions

View File

@ -455,7 +455,6 @@ public class CapacityScheduler extends
boolean validation) throws IOException {
writeLock.lock();
try {
writeLock.lock();
Configuration configuration = new Configuration(newConf);
CapacitySchedulerConfiguration oldConf = this.conf;
if (validation) {