kevinrr888 commented on PR #4807:
URL: https://github.com/apache/accumulo/pull/4807#issuecomment-2289486341

   ### Some example outputs and a sketch of the current dependency tree as 
support:
   ```
   Dependency tree sketch:
   
           SYSTEM_CONFIG
                 |
                 V
           ROOT_METADATA
                 |
                 V
             ROOT_TABLE
            /          \
      METADATA_TABLE  SYSTEM_FILES
            |
            V
        USER_FILES
   ```
   ### Sample outputs:
   
   ```
   $ accumulo admin check list
   
   Check Name           | Description                                           
                           | Depends on          
   
------------------------------------------------------------------------------------------------------------------------
   SYSTEM_CONFIG        | Validate the system config stored in ZooKeeper        
                           |                     
   ROOT_METADATA        | Checks integrity of the root tablet metadata stored 
in ZooKeeper                 | SYSTEM_CONFIG       
   ROOT_TABLE           | Scans all the tablet metadata stored in the root 
table and checks integrity      | ROOT_METADATA       
   METADATA_TABLE       | Scans all the tablet metadata stored in the metadata 
table and checks integrity  | ROOT_TABLE          
   SYSTEM_FILES         | Checks that files in system tablet metadata exist in 
DFS                         | ROOT_TABLE          
   USER_FILES           | Checks that files in user tablet metadata exist in 
DFS                           | METADATA_TABLE      
   
------------------------------------------------------------------------------------------------------------------------
   ```
   
   ```
   $ accumulo admin check run
   
   Running check SYSTEM_CONFIG
   Check SYSTEM_CONFIG completed with status OK
   Running check ROOT_METADATA
   Check ROOT_METADATA completed with status OK
   Running check ROOT_TABLE
   Check ROOT_TABLE completed with status OK
   Running check METADATA_TABLE
   Check METADATA_TABLE completed with status OK
   Running check SYSTEM_FILES
   Check SYSTEM_FILES completed with status OK
   Running check USER_FILES
   Check USER_FILES completed with status OK
   
   Check Name           | Status              
   --------------------------------------------------
   SYSTEM_CONFIG        | OK                  
   ROOT_METADATA        | OK                  
   ROOT_TABLE           | OK                  
   METADATA_TABLE       | OK                  
   SYSTEM_FILES         | OK                  
   USER_FILES           | OK                  
   --------------------------------------------------
   ```
   
   ```
   $ accumulo admin check run -p ".*table"
   
   Running check SYSTEM_CONFIG
   Check SYSTEM_CONFIG completed with status OK
   Running check ROOT_METADATA
   Check ROOT_METADATA completed with status OK
   Running check ROOT_TABLE
   Check ROOT_TABLE completed with status OK
   Running check METADATA_TABLE
   Check METADATA_TABLE completed with status OK
   
   Check Name           | Status              
   --------------------------------------------------
   SYSTEM_CONFIG        | OK                  
   ROOT_METADATA        | OK                  
   ROOT_TABLE           | OK                  
   METADATA_TABLE       | OK                  
   --------------------------------------------------
   ```
   
   **In this example, I made `ROOT_TABLE` fail when it was run and attempted to 
run all the checks**
   ```
   $ accumulo admin check run
   
   Running check SYSTEM_CONFIG
   Check SYSTEM_CONFIG completed with status OK
   Running check ROOT_METADATA
   Check ROOT_METADATA completed with status OK
   Running check ROOT_TABLE
   Check ROOT_TABLE completed with status FAILED
   
   Check Name           | Status              
   --------------------------------------------------
   SYSTEM_CONFIG        | OK                  
   ROOT_METADATA        | OK                  
   ROOT_TABLE           | FAILED              
   METADATA_TABLE       | SKIPPED_DEPENDENCY_FAILED
   SYSTEM_FILES         | SKIPPED_DEPENDENCY_FAILED
   USER_FILES           | SKIPPED_DEPENDENCY_FAILED
   --------------------------------------------------
   ```


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

Reply via email to