YARN-3892. Fixed NPE on RMStateStore#serviceStop when CapacityScheduler#serviceInit fails. Contributed by Bibin A Chundatt
This commit is contained in:
parent
c0b8e4e5b5
commit
c9dd2cada0
|
@ -598,6 +598,9 @@ Release 2.8.0 - UNRELEASED
|
|||
YARN-2194. Fix bug causing CGroups functionality to fail on RHEL7.
|
||||
(Wei Yan via vvasudev)
|
||||
|
||||
YARN-3892. Fixed NPE on RMStateStore#serviceStop when
|
||||
CapacityScheduler#serviceInit fails. (Bibin A Chundatt via jianhe)
|
||||
|
||||
Release 2.7.2 - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -40,6 +40,7 @@ import org.apache.curator.retry.RetryNTimes;
|
|||
import org.apache.hadoop.classification.InterfaceAudience.Private;
|
||||
import org.apache.hadoop.classification.InterfaceStability.Unstable;
|
||||
import org.apache.hadoop.conf.Configuration;
|
||||
import org.apache.hadoop.io.IOUtils;
|
||||
import org.apache.hadoop.security.token.delegation.DelegationKey;
|
||||
import org.apache.hadoop.util.ZKUtil;
|
||||
import org.apache.hadoop.yarn.api.records.ApplicationAttemptId;
|
||||
|
@ -312,7 +313,7 @@ public class ZKRMStateStore extends RMStateStore {
|
|||
verifyActiveStatusThread.interrupt();
|
||||
verifyActiveStatusThread.join(1000);
|
||||
}
|
||||
curatorFramework.close();
|
||||
IOUtils.closeStream(curatorFramework);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue