sadanand48 opened a new pull request, #11017:
URL: https://github.com/apache/ozone/pull/11017

   ## What changes were proposed in this pull request?
   This PR adds a new OM repair CLI tool to download and construct om.db using 
the same follower bootstrap transfer path.
   
   Added ozone repair om download (DownloadOMDB) in ozone-cli-repair.
   The command reuses OmRatisSnapshotProvider / follower-bootstrap checkpoint 
flow and forces v2 inode-based transfer 
(ozone.om.db.checkpoint.use.inode.based.transfer=true) for this operation.
   Added CLI registration under OMRepair.
   Replaced the earlier mocked unit coverage with an integration test 
(TestDownloadOMDBTool) that validates end-to-end behavior against a MiniOzone 
HA cluster:
   successful download/build of om.db
   v2 checkpoint endpoint usage
   overwrite behavior for existing output directory
   
   
   **Why**
   Operators need a practical offline/repair utility to fetch and assemble a 
usable om.db exactly the way OM followers bootstrap, instead of maintaining 
separate transfer logic.
   
   
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-16171
   
   ## How was this patch tested?
   Added/updated integration coverage:
   TestDownloadOMDBTool#testDownloadConstructsOmDbUsingV2Transfer
   TestDownloadOMDBTool#testOverwriteReplacesExistingOutput
   


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