HADOOP-16847. Test can fail if HashSet iterates in a different order.
Contributed by Testfixer
This commit is contained in:
parent
6aec712c6c
commit
edad6f1d0f
@ -22,6 +22,7 @@
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
|
import java.util.LinkedHashSet;
|
||||||
import java.util.LinkedList;
|
import java.util.LinkedList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
@ -67,7 +68,7 @@ public void setup() throws IOException {
|
|||||||
|
|
||||||
public static class FakeGroupMapping extends ShellBasedUnixGroupsMapping {
|
public static class FakeGroupMapping extends ShellBasedUnixGroupsMapping {
|
||||||
// any to n mapping
|
// 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 Set<String> blackList = new HashSet<String>();
|
||||||
private static int requestCount = 0;
|
private static int requestCount = 0;
|
||||||
private static long getGroupsDelayMs = 0;
|
private static long getGroupsDelayMs = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user