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

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

                Author: ASF GitHub Bot
            Created on: 18/Sep/21 18:27
            Start Date: 18/Sep/21 18:27
    Worklog Time Spent: 10m 
      Work Description: ayushtkn commented on a change in pull request #3455:
URL: https://github.com/apache/hadoop/pull/3455#discussion_r711624343



##########
File path: 
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestStorageRestore.java
##########
@@ -294,7 +294,7 @@ public void testDfsAdminCmd() throws Exception {
       restore = fsi.getStorage().getRestoreFailedStorage();
       assertTrue("After check call restore is " + restore, restore);
       String commandOutput = cmdResult.getCommandOutput();
-      commandOutput.trim();
+      commandOutput = commandOutput.trim();
       assertTrue(commandOutput.contains("restoreFailedStorage is set to 
true"));

Review comment:
       See, if you can restore the repository
   
https://docs.github.com/en/repositories/creating-and-managing-repositories/restoring-a-deleted-repository




-- 
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: 652648)
    Time Spent: 50m  (was: 40m)

> Minor bug in TestStorageRestore
> -------------------------------
>
>                 Key: HDFS-16230
>                 URL: https://issues.apache.org/jira/browse/HDFS-16230
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: test
>            Reporter: Thomas Leplus
>            Priority: Trivial
>              Labels: pull-request-available
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> Strings being immutable, you need to use the trim() method return value.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to