elek opened a new pull request #1276:
URL: https://github.com/apache/hadoop-ozone/pull/1276


   ## What changes were proposed in this pull request?
   
   
   
   HDDS-3814 proposed a new subcommand which deletes the column families from 
the rocksdb tables.
   
   But during the discussion there was no consensus if it's safe to add or not.
   
   This patch makes the sub-commands easy to extend. Anybody can extend the 
main ozone shell commands with new sub-commands.
   
   Sub-commands can be added to the classpath and activated by Service Provider 
Interface (meta-inf/services/...).
   
   This is an optional feature, current approach works forward (annotation 
based sub-command definition).
   
   And it's not only about HDDS-3814.
   
   It makes it easier to organize the sub-commands. (For example RDBStore 
related commands can be moved to the rdb classes, they will be picked up).
   
   It makes possible to provide additional, ad-hoc tools during debug or 
support which can help to solve/debug specific problems.
   
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-4046
   
   ## How was this patch tested?
   
   With CI. The changed subcommands are covered by acceptance tests. Also 
tested manually with `ozone sh`.


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

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