소스 검색

HDFS-10336. TestBalancer failing intermittently because of not reseting UserGroupInformation completely. Contributed by Yiqun Lin.

Akira Ajisaka 8 년 전
부모
커밋
932aed64d7
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/balancer/TestBalancer.java

+ 1 - 0
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/balancer/TestBalancer.java

@@ -1956,6 +1956,7 @@ public class TestBalancer {
       });
     } finally {
       // Reset UGI so that other tests are not affected.
+      UserGroupInformation.reset();
       UserGroupInformation.setConfiguration(new Configuration());
     }
   }