slfan1989 commented on code in PR #7733: URL: https://github.com/apache/hadoop/pull/7733#discussion_r2144034309
########## hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestBlockStoragePolicy.java: ########## @@ -1432,16 +1440,14 @@ public void testGetFileStoragePolicyAfterRestartNN() throws Exception { fs.setStoragePolicy(dir, "HOT"); HdfsFileStatus status = fs.getClient().getFileInfo(file); // 5. get file policy, it should be parent policy. - Assert - .assertTrue("File storage policy should be HOT", - status.getStoragePolicy() == HOT); + assertTrue( + status.getStoragePolicy() == HOT, "File storage policy should be HOT"); Review Comment: checkstyle. ########## hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestBlockStoragePolicy.java: ########## @@ -1432,16 +1440,14 @@ public void testGetFileStoragePolicyAfterRestartNN() throws Exception { fs.setStoragePolicy(dir, "HOT"); HdfsFileStatus status = fs.getClient().getFileInfo(file); // 5. get file policy, it should be parent policy. - Assert - .assertTrue("File storage policy should be HOT", - status.getStoragePolicy() == HOT); + assertTrue( + status.getStoragePolicy() == HOT, "File storage policy should be HOT"); // 6. restart NameNode for reloading edits logs. cluster.restartNameNode(true); // 7. get file policy, it should be parent policy. status = fs.getClient().getFileInfo(file); - Assert - .assertTrue("File storage policy should be HOT", - status.getStoragePolicy() == HOT); + assertTrue( + status.getStoragePolicy() == HOT, "File storage policy should be HOT"); Review Comment: checkstyle. -- 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-unsubscr...@hadoop.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org