From 982bd2a5bff4c490a5d62f2e4fd0d3755305349c Mon Sep 17 00:00:00 2001 From: Inigo Goiri Date: Tue, 31 Oct 2017 10:21:42 -0700 Subject: [PATCH] HDFS-12699. TestMountTable fails with Java 7. Contributed by Inigo Goiri. --- .../hdfs/server/federation/store/records/TestMountTable.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/federation/store/records/TestMountTable.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/federation/store/records/TestMountTable.java index b6f91cf811..739d2e482b 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/federation/store/records/TestMountTable.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/federation/store/records/TestMountTable.java @@ -22,7 +22,6 @@ import static org.junit.Assert.assertTrue; import java.io.IOException; -import java.util.HashMap; import java.util.LinkedHashMap; import java.util.LinkedList; import java.util.List; @@ -113,7 +112,7 @@ private void testSerialization(final DestinationOrder order) @Test public void testReadOnly() throws IOException { - Map dest = new HashMap<>(); + Map dest = new LinkedHashMap<>(); dest.put(DST_NS_0, DST_PATH_0); dest.put(DST_NS_1, DST_PATH_1); MountTable record1 = MountTable.newInstance(SRC, dest);