YARN-10347. Fix double locking in CapacityScheduler#reinitialize in branch-3.1.
This commit is contained in:
parent
d787b9373a
commit
4fa8055aa4
|
@ -434,7 +434,6 @@ public class CapacityScheduler extends
|
||||||
boolean validation) throws IOException {
|
boolean validation) throws IOException {
|
||||||
writeLock.lock();
|
writeLock.lock();
|
||||||
try {
|
try {
|
||||||
writeLock.lock();
|
|
||||||
Configuration configuration = new Configuration(newConf);
|
Configuration configuration = new Configuration(newConf);
|
||||||
CapacitySchedulerConfiguration oldConf = this.conf;
|
CapacitySchedulerConfiguration oldConf = this.conf;
|
||||||
if (validation) {
|
if (validation) {
|
||||||
|
|
Loading…
Reference in New Issue