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

   ## What changes were proposed in this pull request?
   
   `ozone freon` has several unrelated subcommands, which currently are 
enumareted in the class `Freon`.  This PR changes subcommands to register with 
the parent command, instead of the other way around.
   
   https://issues.apache.org/jira/browse/HDDS-11994
   
   ## How was this patch tested?
   
   Verified that the number of freon subcommands is the same as previously:
   
   ```
   $ bin/ozone freon 2>&1 | grep '^  [^ -]' | wc -l
   36
   ```
   
   Output when run without specific subcommand:
   
   ```
   $ bin/ozone freon
   ...
   Incomplete command
   Usage: ozone freon [-hV] [--server] [--verbose] [-conf=<configurationPath>]
                      [-D=<String=String>]... [COMMAND]
   Load generator and tester tool for ozone
         -conf=<configurationPath>
   
     -D, --set=<String=String>
   
     -h, --help      Show this help message and exit.
         --server    Enable internal http server to provide metric and profile
                       endpoint
     -V, --version   Print version information and exit.
         --verbose   More verbose output. Show the stack trace of the errors.
   Commands:
     cgdn                                      Offline container metadata
                                                 generator for Ozone Datanodes.
     cgom                                      Offline container metadata
                                                 generator for Ozone Manager
     cgscm                                     Offline container metadata
                                                 generator for Storage Conainer
                                                 Manager
     cmdw, chunk-manager-disk-write            Write chunks as fast as possible.
     cr, container-replicator                  Replicate / download closed
                                                 containers.
     dbp, datanode-block-putter                Issues putBlock commands to a 
Ratis
                                                 pipeline.  The blocks are
                                                 associated with a list of fake
                                                 chunks, which do not really 
exist.
     dcg, datanode-chunk-generator             Create as many chunks as possible
                                                 with pure XCeiverClient.
     dcv, datanode-chunk-validator             Validate generated Chunks are the
                                                 same
     ddsg, dfs-directory-generator             Create nested directories to the
                                                 any dfs compatible file system.
     dfsg, dfs-file-generator                  Create random files to the any 
dfs
                                                 compatible file system.
     dfsv, dfs-file-validator                  Validate if the generated files
                                                 have the same hash.
     dn-echo, dne                              Generate echo RPC request to
                                                 DataNode
     dtsg, dfs-tree-generator                  Create nested directories and
                                                 create given number of files in
                                                 each dir in any dfs compatible
                                                 file system.
     falg, follower-append-log-generator       Generate append log entries to a
                                                 follower server
     hg, hsync-generator                       Generate writes and hsync traffic
                                                 on one or multiple files.
     lalg, leader-append-log-generator         Generate append log entries to a
                                                 leader server
     obrwf, om-bucket-read-write-file-ops      Creates files, performs 
respective
                                                 read/write operations to 
measure
                                                 lock performance.
     obrwk, om-bucket-read-write-key-ops       Creates keys, performs respective
                                                 read/write operations to 
measure
                                                 lock performance.
     occ, ozone-client-creator                 Create and close Ozone clients
                                                 without doing anything useful
     ockg, ozone-client-key-generator          Generate keys with the help of 
the
                                                 ozone clients.
     ockr, ozone-client-key-remover            Remove keys with the help of the
                                                 ozone clients.
     ockrw, ozone-client-key-read-write-list-ops
                                               Generate keys with a fixed name 
and
                                                 ranges that can be written, 
read
                                                 and listed as sub-ranges from
                                                 multiple clients.
     ockv, ozone-client-key-validator          Validate keys with the help of 
the
                                                 ozone clients.
     ocokr, ozone-client-one-key-reader        Read the same key from multiple
                                                 threads.
     om-echo, ome                              Generate echo RPC request to the 
OM
                                                 with or without payload. Max
                                                 payload size is 2097151 KB
     ombg, om-bucket-generator                 Generate ozone buckets on OM 
side.
     ombr, om-bucket-remover                   Remove ozone buckets on OM side.
     omkg, om-key-generator                    Create keys to the om metadata
                                                 table.
     ommg, om-metadata-generator               Create metadata operation to the 
OM.
     ork                                       write range keys with the help of
                                                 the ozone clients.
     randomkeys, rk                            Generate volumes/buckets and put
                                                 generated keys.
     s3bg, s3-bucket-generator                 Create buckets via the s3 
interface.
                                               Command requires AWS 
authentication
                                                 environment variables set,
                                                 AWS_ACCESS_KEY_ID and
                                                 AWS_SECRET_ACCESS_KEY
     s3kg, s3-key-generator                    Create random keys via the s3
                                                 interface.Command requires AWS
                                                 authentication environment
                                                 variables set, 
AWS_ACCESS_KEY_ID
                                                 and AWS_SECRET_ACCESS_KEY
     scm-throughput-benchmark, stb             Benchmark for scm throughput.
     simulate-datanode                         Simulate one or many datanodes 
and
                                                 register them to SCM.This is 
used
                                                 to stress test SCM handling a
                                                 massive cluster.
     strmg, streaming-generator                Create directory structure and
                                                 stream them multiple times.
   ```
   
   CI:
   https://github.com/adoroszlai/ozone/actions/runs/12506264423


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