You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by GitBox <gi...@apache.org> on 2022/03/31 05:27:49 UTC

[GitHub] [hadoop] GuoPhilipse commented on a change in pull request #3703: HDFS-16347. Fix directory scan throttle default value

GuoPhilipse commented on a change in pull request #3703:
URL: https://github.com/apache/hadoop/pull/3703#discussion_r839185051



##########
File path: hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestDirectoryScanner.java
##########
@@ -1260,4 +1260,11 @@ private void writeFile(FileSystem fs, int numFiles) throws IOException {
       DFSTestUtil.createFile(fs, filePath, 1, (short) 1, 0);
     }
   }
+
+  @Test(timeout = 3000)
+  public void testDefaultDirectoryScanThrottle() {
+    Configuration conf = new Configuration(getConfiguration());
+    assertEquals(Integer.parseInt(
+            conf.get(DFSConfigKeys.DFS_DATANODE_DIRECTORYSCAN_THROTTLE_LIMIT_MS_PER_SEC_KEY)), 1000);

Review comment:
       thanks @tomscut for your review ,have just fixed it :)




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org