From 932aed64d77edcc8483a95c1ce31a4c9ae679446 Mon Sep 17 00:00:00 2001 From: Akira Ajisaka Date: Fri, 8 Jul 2016 14:39:11 -0700 Subject: [PATCH] HDFS-10336. TestBalancer failing intermittently because of not reseting UserGroupInformation completely. Contributed by Yiqun Lin. --- .../org/apache/hadoop/hdfs/server/balancer/TestBalancer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/balancer/TestBalancer.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/balancer/TestBalancer.java index 1cfd488c10d..788f1e5c4b9 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/balancer/TestBalancer.java +++ b/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()); } }