errose28 opened a new pull request #3052:
URL: https://github.com/apache/ozone/pull/3052


   ## What changes were proposed in this pull request?
   
   - Include empty chunks directory in the tarball when replicating a container.
   - Recreate directory entries when unpacking the tarball.
   - Run a metadata scan (fast scan) of the container before exporting, and 
mark it unhealthy if it fails.
       - Prevents SCM from continuously trying to replicate this malformed 
container.
   - Run a metadata scan of the container when importing, and abort the import 
process if it fails.
   - On datanode startup, create an empty chunks directory if no chunks 
directory is present.
       - Repairs existing containers now that the bug is fixed.
   
   ## What is the link to the Apache JIRA
   
   HDDS-6235
   
   ## How was this patch tested?
   
   - Unit test added, which passed only after the fix was applied.
   - Manually tested chunks directory creation on startup in docker:
       1. Create empty container with `ozone admin container create`
       2. Delete its chunks directory.
       3. Restart the datanode.
       4. Check that empty chunks directory is created.
   


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