diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 964658123b..9db3535d10 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -349,6 +349,10 @@ Release 2.7.0 - UNRELEASED HDFS-7258. CacheReplicationMonitor rescan schedule log should use DEBUG level instead of INFO level. (Xiaoyu Yao via wheat9) + HDFS-7282. Fix intermittent TestShortCircuitCache and + TestBlockReaderFactory failures resulting from TemporarySocketDirectory GC. + (Jinghui Wang via Colin Patrick McCabe) + Release 2.6.0 - UNRELEASED INCOMPATIBLE CHANGES diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestBlockReaderFactory.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestBlockReaderFactory.java index a7dcbc1168..5c330cd1ce 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestBlockReaderFactory.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestBlockReaderFactory.java @@ -343,6 +343,7 @@ public void visit(HashMap info) } }); cluster.shutdown(); + sockDir.close(); } /** @@ -378,6 +379,7 @@ public void testShortCircuitReadFromClientWithoutShm() throws Exception { fs.dfs.getClientContext().getShortCircuitCache(); Assert.assertEquals(null, cache.getDfsClientShmManager()); cluster.shutdown(); + sockDir.close(); } /** @@ -411,6 +413,7 @@ public void testShortCircuitCacheShutdown() throws Exception { Assert.assertTrue(cache.getDfsClientShmManager(). getDomainSocketWatcher().isClosed()); cluster.shutdown(); + sockDir.close(); } /** diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/shortcircuit/TestShortCircuitCache.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/shortcircuit/TestShortCircuitCache.java index ca30e02994..bfa871c40f 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/shortcircuit/TestShortCircuitCache.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/shortcircuit/TestShortCircuitCache.java @@ -519,6 +519,7 @@ public void visit(int numOutstandingMmaps, } }); cluster.shutdown(); + sockDir.close(); } /**