This is an automated email from the ASF dual-hosted git repository. dzamo pushed a commit to branch hadoop-impersonation-tests in repository https://gitbox.apache.org/repos/asf/drill.git
commit d25b51b73751299b3c1e2e812b07f54c2331bde1 Author: James Turton <ja...@somecomputer.xyz> AuthorDate: Wed Aug 16 08:49:15 2023 +0200 Reset UserGroupInformation in BaseTestImpersonation. --- .../java/org/apache/drill/exec/impersonation/BaseTestImpersonation.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/exec/java-exec/src/test/java/org/apache/drill/exec/impersonation/BaseTestImpersonation.java b/exec/java-exec/src/test/java/org/apache/drill/exec/impersonation/BaseTestImpersonation.java index f1d471d09e..b255b7e694 100644 --- a/exec/java-exec/src/test/java/org/apache/drill/exec/impersonation/BaseTestImpersonation.java +++ b/exec/java-exec/src/test/java/org/apache/drill/exec/impersonation/BaseTestImpersonation.java @@ -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]});