This is an automated email from the ASF dual-hosted git repository.

stevel pushed a commit to branch branch-3.2
in repository

The following commit(s) were added to refs/heads/branch-3.2 by this push:
     new edad6f1  HADOOP-16847. Test can fail if HashSet iterates in a 
different order.
edad6f1 is described below

commit edad6f1d0f193cf0bd3eddd1f33bed7cdff6880e
Author: testfixer <>
AuthorDate: Tue Feb 11 05:22:07 2020 -0600

    HADOOP-16847. Test can fail if HashSet iterates in a different order.
    Contributed by Testfixer
 .../src/test/java/org/apache/hadoop/security/    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
index bba8152..6945568 100644
@@ -22,6 +22,7 @@ import;
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.HashSet;
+import java.util.LinkedHashSet;
 import java.util.LinkedList;
 import java.util.List;
 import java.util.Set;
@@ -67,7 +68,7 @@ public class TestGroupsCaching {
   public static class FakeGroupMapping extends ShellBasedUnixGroupsMapping {
     // any to n mapping
-    private static Set<String> allGroups = new HashSet<String>();
+    private static Set<String> allGroups = new LinkedHashSet<String>();
     private static Set<String> blackList = new HashSet<String>();
     private static int requestCount = 0;
     private static long getGroupsDelayMs = 0;

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to