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 2021/12/04 13:10:29 UTC
[GitHub] [hadoop] ayushtkn commented on a change in pull request #3724: HDFS-16355. Improve block scanner desc
ayushtkn commented on a change in pull request #3724:
URL: https://github.com/apache/hadoop/pull/3724#discussion_r762425150
##########
File path: hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestBlockScanner.java
##########
@@ -290,6 +290,18 @@ public void testDisableVolumeScanner() throws Exception {
}
}
+ @Test(timeout=60000)
+ public void testDisableVolumeScanner2() throws Exception {
+ Configuration conf = new Configuration();
+ conf.setLong(DFS_BLOCK_SCANNER_VOLUME_BYTES_PER_SECOND, -1L);
+ TestContext ctx = new TestContext(conf, 1);
+ try {
+ Assert.assertFalse(ctx.datanode.getBlockScanner().isEnabled());
Review comment:
There is already a static import for assertFalse, you don't need the prefix Assert.
--
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