Skip to content

Commit ade2a4a

Browse files
committed
HDFS-17830. Fix failing TestZKDelegationTokenSecretManagerImpl due to static Curator reuse.
1 parent 2d2d976 commit ade2a4a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/token/delegation/TestZKDelegationTokenSecretManager.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ public void tearDown() throws Exception {
9696
if (zkServer != null) {
9797
zkServer.close();
9898
}
99+
// Prevent a STOPPED Curator from leaking into the next test.
100+
ZKDelegationTokenSecretManager.setCurator(null);
99101
}
100102

101103
protected Configuration getSecretConf(String connectString) {

0 commit comments

Comments
 (0)