(cherry picked from commit 932aed64d77edcc8483a95c1ce31a4c9ae679446)
@@ -1870,6 +1870,7 @@ public class TestBalancer {
});
} finally {
// Reset UGI so that other tests are not affected.
+ UserGroupInformation.reset();
UserGroupInformation.setConfiguration(new Configuration());
}