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

   ## What changes were proposed in this pull request?
   
   Merge `FSORepairCLI` into `FSORepairTool` to allow using functions from 
`RepairTool` for output.
   
   https://issues.apache.org/jira/browse/HDDS-12009
   
   ## How was this patch tested?
   
   Tested in `restart` compose environment.
   
   ```bash
   $ cd hadoop-ozone/dist/target/ozone-2.0.0-SNAPSHOT/compose/restart
   $ ./test.sh
   ...
   
   $ cp -a data/om/metadata data/s3g/
   $ export OZONE_VOLUME=$(pwd)/data
   $ docker compose up -d s3g
    ✔ Container restart-s3g-1  Started
   
   $ echo 'y' | docker compose exec -T s3g ozone repair om fso-tree 
--db=/data/metadata/om.db
   ATTENTION: Running as user hadoop. Make sure this is the same user used to 
run the Ozone process. Are you sure you want to continue (y/N)? Run as user: 
hadoop
   No running OM service detected. Proceeding with repair.
   FSO Repair Tool is running in debug mode
   Creating database of reachable directories at /data/metadata/reachable.db
   Processing volume: /s3v
   Processing volume: /vol1
   Processing bucket: vol1/bucket1
   Skipping non-FSO bucket /vol1/ombgpost0
   Skipping non-FSO bucket /vol1/ombgpre0
   
   Reachable:
        Directories: 4
        Files: 4
        Bytes: 20480
   Unreachable:
        Directories: 0
        Files: 0
        Bytes: 0
   Unreferenced:
        Directories: 0
        Files: 0
        Bytes: 0
   ```
   
   CI:
   https://github.com/adoroszlai/ozone/actions/runs/12599866475
   


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