Browse Source

HADOOP-10645. TestKMS fails because race condition writing acl files. (tucu)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1598773 13f79535-47bb-0310-9956-ffa450edef68
Alejandro Abdelnur 11 năm trước cách đây
mục cha
commit
05d8586bc0

+ 2 - 0
hadoop-common-project/hadoop-common/CHANGES.txt

@@ -334,6 +334,8 @@ Trunk (Unreleased)
     HADOOP-10625. Trim configuration names when putting/getting them
     to properties. (Wangda Tan via xgong)
 
+    HADOOP-10645. TestKMS fails because race condition writing acl files. (tucu)
+
   OPTIMIZATIONS
 
     HADOOP-7761. Improve the performance of raw comparisons. (todd)

+ 3 - 0
hadoop-common-project/hadoop-kms/src/test/java/org/apache/hadoop/crypto/key/kms/server/TestKMS.java

@@ -717,6 +717,9 @@ public class TestKMS {
           }
         });
 
+        //stop the reloader, to avoid running while we are writing the new file
+        KMSWebApp.getACLs().stopReloader();
+
         // test ACL reloading
         Thread.sleep(10); // to ensure the ACLs file modifiedTime is newer
         conf.set(KMSACLs.Type.CREATE.getConfigKey(), "foo");