You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by st...@apache.org on 2020/02/11 11:25:04 UTC
[hadoop] branch branch-3.2 updated: HADOOP-16847. Test can fail if
HashSet iterates in a different order.
This is an automated email from the ASF dual-hosted git repository.
stevel pushed a commit to branch branch-3.2
in repository https://gitbox.apache.org/repos/asf/hadoop.git
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 <60...@users.noreply.github.com>
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/TestGroupsCaching.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/TestGroupsCaching.java b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/TestGroupsCaching.java
index bba8152..6945568 100644
--- a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/TestGroupsCaching.java
+++ b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/TestGroupsCaching.java
@@ -22,6 +22,7 @@ import java.io.IOException;
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: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org