cndaimin opened a new pull request #3593:
URL: https://github.com/apache/hadoop/pull/3593


   This patch is tested by `hdfs debug` tool.
   
   Check a good file:
   ```
   $ hdfs debug verifyEC -file /dfsperf.0.0
   Checking EC block group: blk_-9223372036854774784
   Status: OK
   Checking EC block group: blk_-9223372036854774768
   Status: OK
   Checking EC block group: blk_-9223372036854774752
   Status: OK
   
   All EC block group status: OK
   ```
   
   Check a bad file:
   ```
   $ hdfs debug verifyEC -file /sc.dat
   Checking EC block group: blk_-9223372036854774736
   Status: ERROR, message: EC compute result not match.
   ```
   
   Help message:
   ```
   $ hdfs debug verifyEC
   verifyEC -file <file>
     Verify HDFS erasure coding on all block groups of the file.
   ```


-- 
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]



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

Reply via email to