diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 00b4547bbfc..0263f1702ac 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -28,6 +28,9 @@ Release 2.9.0 - UNRELEASED HDFS-9371. Code cleanup for DatanodeManager. (jing9) + HDFS-9300. TestDirectoryScanner.testThrottle() is still a little flakey. + (Daniel Templeton via wang) + OPTIMIZATIONS BUG FIXES diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestDirectoryScanner.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestDirectoryScanner.java index 623d3ee601e..9ee2838775e 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestDirectoryScanner.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestDirectoryScanner.java @@ -601,7 +601,7 @@ public class TestDirectoryScanner { ratio = 0.0f; retries = maxRetries; - while ((retries > 0) && ((ratio < 3f) || (ratio > 4.5f))) { + while ((retries > 0) && ((ratio < 2.75f) || (ratio > 4.5f))) { scanner = new DirectoryScanner(dataNode, fds, conf); ratio = runThrottleTest(blocks); retries -= 1; @@ -610,7 +610,7 @@ public class TestDirectoryScanner { // Waiting should be about 4x running. LOG.info("RATIO: " + ratio); assertTrue("Throttle is too restrictive", ratio <= 4.5f); - assertTrue("Throttle is too permissive", ratio >= 3.0f); + assertTrue("Throttle is too permissive", ratio >= 2.75f); // Test with more than 1 thread conf.setInt(DFSConfigKeys.DFS_DATANODE_DIRECTORYSCAN_THREADS_KEY, 3);