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

   ## What changes were proposed in this pull request?
   
   This pull request improves how administrators manage deleted blocks in 
Apache Ozone.
   It introduces a new command-line tool that helps detect and fix mismatches 
in the deleted blocks summary. The tool works by taking a snapshot (checkpoint) 
of the database and comparing the actual deleted blocks with what the system 
thinks is deleted.
   If it finds any differences, it clearly shows them to the user and can also 
fix the issue with confirmation. This makes it easier to maintain accurate data 
and improves the reliability of the system.
   
   ## What is the link to the Apache JIRA
   
   HDDS-14387
   
   ## How was this patch tested?
   
   Tested using unit test and manually
   
   ```shell
   [[email protected] ~]# ozone admin scm 
deletedBlocksTxn summary --detail
   Taking RocksDB checkpoint and scanning deletedBlocks table ...
   
   === DeletedBlocksTransaction Checkpoint Comparison ===
   Metric                                Checkpoint Actual   Checkpoint 
Persisted
   Total transactions                    0                   0                 
   Total blocks                          0                   0                 
   Total Block size (bytes)              0                   0                 
   Total Replicated size (bytes)         0                   0                 
   [[email protected] ~]# ozone admin scm 
deletedBlocksTxn summary --repair
   Taking RocksDB checkpoint and scanning deletedBlocks table ...
   
   === DeletedBlocksTransaction Checkpoint Comparison ===
   Metric                                Checkpoint Actual   Checkpoint 
Persisted
   Total transactions                    0                   0                 
   Total blocks                          0                   0                 
   Total Block size (bytes)              0                   0                 
   Total Replicated size (bytes)         0                   0                 
   
   Checkpoint is consistent and nothing to repair.
   
   [[email protected] ~]# ozone admin scm 
deletedBlocksTxn summary
   DeletedBlocksTransaction summary:
   Total number of transactions: 0
   Total number of blocks: 0
   Total size of blocks: 0
   Total replicated size of blocks: 0
   ```


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