[ 
https://issues.apache.org/jira/browse/HDFS-16324?focusedWorklogId=692497&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-692497
 ]

ASF GitHub Bot logged work on HDFS-16324:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 08/Dec/21 12:13
            Start Date: 08/Dec/21 12:13
    Worklog Time Spent: 10m 
      Work Description: aajisaka commented on a change in pull request #3661:
URL: https://github.com/apache/hadoop/pull/3661#discussion_r764810916



##########
File path: 
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/blockmanagement/TestBlockManagerSafeMode.java
##########
@@ -251,9 +252,9 @@ public void testCheckSafeMode10(){
     BlockManagerSafeMode blockManagerSafeMode = new BlockManagerSafeMode(bm,
             fsn, true, conf);
     String content = logs.getOutput();
-    assertTrue(content.contains("Invalid value for " +
+    assertThat(content, containsString("Invalid value for " +
             DFSConfigKeys.DFS_NAMENODE_SAFEMODE_RECHECK_INTERVAL_KEY +
-            ".Should be greater than 0, but is -1"));
+            ". Should be greater than 0, but is -1"));

Review comment:
       Sorry, I meant AssertJ's assertThat. https://assertj.github.io/doc/




-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 692497)
    Time Spent: 3h 50m  (was: 3h 40m)

> fix error log in BlockManagerSafeMode
> -------------------------------------
>
>                 Key: HDFS-16324
>                 URL: https://issues.apache.org/jira/browse/HDFS-16324
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: hdfs
>    Affects Versions: 3.3.1
>            Reporter: guophilipse
>            Priority: Minor
>              Labels: pull-request-available
>          Time Spent: 3h 50m
>  Remaining Estimate: 0h
>
> if `recheckInterval` was set as invalid value, there will be warning log 
> output, but the message seems not that proper ,we can improve it.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to