cku328 opened a new pull request #669: HDDS-3144. Fixed failed test case.
URL: https://github.com/apache/hadoop-ozone/pull/669
 
 
   ## What changes were proposed in this pull request?
   
   I use the debugger to get a log string that calls the 
[processLogLine(...)](https://github.com/apache/hadoop-ozone/blob/c1997218a4e1a6695a275c73cf85360cd046329c/hadoop-ozone/insight/src/main/java/org/apache/hadoop/ozone/insight/LogSubcommand.java#L147)
 method, which is:
   ```
   2020-03-12 20:57:54,001 
[TRACE|org.apache.hadoop.hdds.scm.node.SCMNodeManager|SCMNodeManager] HB is 
received from [datanode=localhost]: <json>storageReport {\n  storageUuid: 
"DS-f65eb957-fc2d-4b77-b4a3-e96ae2bd2ca6"\n  storageLocation: 
"/tmp/hadoop-neo/dfs/data"\n  capacity: 250438021120\n  scmUsed: 16384\n  
remaining: 212041244672\n  storageType: DISK\n  failed: false\n}\n</json>
   ```
   
![debug1](https://user-images.githubusercontent.com/14295594/76533507-29b6f080-64b3-11ea-9ce0-397882d146a8.png)
   
   When I call this method with this string as a parameter, it outputs:
   ```
   2020-03-12 20:57:54,001 
[TRACE|org.apache.hadoop.hdds.scm.node.SCMNodeManager|SCMNodeManager] HB is 
received from [datanode=localhost]: \n
   storageReport {\n
     storageUuid: "DS-f65eb957-fc2d-4b77-b4a3-e96ae2bd2ca6"\n
     storageLocation: "/tmp/hadoop-neo/dfs/data"\n
     capacity: 250438021120\n
     scmUsed: 16384\n
     remaining: 212041244672\n
     storageType: DISK\n
     failed: false\n
   }\n
   ```
   
![debug2](https://user-images.githubusercontent.com/14295594/76533741-7bf81180-64b3-11ea-93e6-121634481797.png)
   
   Finally, I modified the test case to apply the above test strings and 
results.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-3144
   
   ## How was this patch tested?
   
   Ran UTs & checkstyle.sh

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: ozone-issues-h...@hadoop.apache.org

Reply via email to