sarvekshayr opened a new pull request, #12229: URL: https://github.com/apache/ozone/pull/12229
## What changes were proposed in this pull request? Added debug cli to export and get status of the container ID export. ## What is the link to the Apache JIRA [HDDS-15840](https://issues.apache.org/jira/browse/HDDS-15840) ## How was this patch tested? ``` bash-5.1$ ozone debug scm container export --lifecycle-state=CLOSED --start=50 --count=500 --batch-size=500 --part-size=100 Request ID: 701252ed-f8af-4793-8478-d3a277016625. Run again with --request-id 701252ed-f8af-4793-8478-d3a277016625 to get this export back instead of starting another one. Submitted container ID export job: e256dfd4-6ded-428d-b6c1-a9faaecd020d Check status with: ozone debug scm container export status --job-id e256dfd4-6ded-428d-b6c1-a9faaecd020d The job is tracked in the memory of the SCM leader that runs it. If leadership changes or that SCM restarts, the job ID can no longer be queried and the export must be submitted again. bash-5.1$ ozone debug scm container export status --job-id e256dfd4-6ded-428d-b6c1-a9faaecd020d jobId=e256dfd4-6ded-428d-b6c1-a9faaecd020d state=SUCCEEDED lifecycleState=CLOSED startContainerId=50 maxRows=500 batchSize=500 partSize=100 idsWritten=500 elapsedMs=10 scmNodeId=scm1 tarPath=/data/metadata/exports/container-ids_health-ANY_lifecycle-CLOSED_2026-12-02-09-13-19_jobe256dfd4-6ded-428d-b6c1-a9faaecd020d.tar.gz The TAR file is on the SCM leader that ran the export. SCM removes the oldest export archives on its own. bash-5.1$ cat container-ids_health-ANY_lifecycle-CLOSED_2026-12-02-09-13-19_part001.txt # jobId=e256dfd4-6ded-428d-b6c1-a9faaecd020d # jobStartTime=2026-12-02-09-13-19 # scope=health-ANY_lifecycle-CLOSED_2026 # partStartContainerId=#1 # part=1 # format=container-id-per-line 50 51 52 ``` -- 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]
