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

   ## What changes were proposed in this pull request?
   This ozone debug CLI command lists all the container replicas of the 
container which is either UNDER-REPLICATED , OVER-REPLICATED , UNHEALTHY or 
QUASI_CLOSED stuck.
   
   the command provides key details such as:
   
   > Datanode ID 
   > Container ID
   > State 
   > BCSID
   > Timestamp
   
   The command options used are:
   
   List containers by issue type:
   `ozone debug log container --db=<path to db> list-health --issue=<type> `
   
   List containers by issue type with a specified row limit:
   `ozone debug log container --db=<path to db> list-health --issue=<type>  
--length=<limit>`
   
   List all containers by issue type, overriding the row limit:
   `ozone debug log container --db=<path to db> list-health --issue=<type>  
--all`
   
   Sample output for UNHEALTHY :
   ```
   | Container ID    | Datanode ID      | Timestamp                 | BCSID     
 
   +-----------------+------------------+---------------------------+----------
   | 6002            | 100              | 2024-07-23 11:56:21,108   | 6868105   
 
   | 6201            | 100              | 2024-07-23 11:56:21,108   | 6868172   
 
   | 136662          | 150              | 2025-01-08 17:26:15,454   | 6087450   
 
   | 136662          | 300              | 2025-01-15 22:43:03,982   | 6087450   
 
   | 136662          | 250              | 2025-01-15 22:00:56,430   | 6086841   
 
   | 136837          | 200              | 2024-10-25 16:16:15,113   | 6114161   
 
   | 136837          | 310              | 2024-10-25 16:16:02,064   | 6114161   
 
   | 136837          | 400              | 2024-10-25 16:15:59,744   | 6114121   
 
   | 199954          | 220              | 2024-10-31 17:05:18,590   | 1339157   
 
   ```
   Sample output for  UNDER-REPLICATED:
   ```
   | Container ID    | Datanode ID      | State           | BCSID           
   +-----------------+------------------+-----------------+----------
   | 361             | 110              | CLOSED          | 23925           
   | 361             | 120              | CLOSED          | 23925           
   | 362             | 310              | CLOSED          | 24391           
   | 362             | 50               | CLOSED          | 24391           
   | 363             | 410              | CLOSED          | 23975           
   | 363             | 500              | CLOSED          | 23975           
   | 364             | 240              | CLOSED          | 23929           
   | 364             | 260              | CLOSED          | 23929           
   ```
   
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-12653
   
   ## How was this patch tested?
   Below is the workflow link that passed successfully:
   https://github.com/sreejasahithi/ozone/actions/runs/14909363332
   


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