Skip to content

Commit

Permalink
Reset UserGroupInformation in BaseTestImpersonation.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnturton committed Aug 16, 2023
1 parent 976e91c commit d25b51b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ public class BaseTestImpersonation extends ClusterTest {
protected static final String[] org2Groups = { "group0_2", "group1_2", "group2_2", "group3_2", "group4_2", "group5_2" };

static {
UserGroupInformation.reset();

// "user0_1" belongs to "groups0_1". From "user1_1" onwards each user belongs to corresponding group and the group
// before it, i.e "user1_1" belongs to "group1_1" and "group0_1" and so on.
UserGroupInformation.createUserForTesting(org1Users[0], new String[]{org1Groups[0]});
Expand Down

0 comments on commit d25b51b

Please sign in to comment.