Karn Kumar Singh created HDDS-11425:
---------------------------------------

             Summary: Wrong log message is thrown when "ozone freon cr" is 
executed
                 Key: HDDS-11425
                 URL: https://issues.apache.org/jira/browse/HDDS-11425
             Project: Apache Ozone
          Issue Type: Bug
            Reporter: Karn Kumar Singh


I tried executing the "ozone freon cr" command but am getting the "Invalid 
command" error even though the command is correct and it executes successfully.

*Repro step:* 
 # Execute the "ozone freon cr" command.

*Log:* 
{code:java}
# ozone freon cr --duration=20s -f -n 100 -t 20
24/09/05 20:51:47 INFO impl.MetricsConfig: Loaded properties from 
hadoop-metrics2.properties
24/09/05 20:51:47 INFO impl.MetricsSystemImpl: Scheduled Metric snapshot period 
at 30 second(s).
24/09/05 20:51:47 INFO impl.MetricsSystemImpl: ozone-freon metrics system 
started
24/09/05 20:51:48 INFO fs.SaveSpaceUsageToFile: Cached usage info file 
/tmp/hadoop-root/dfs/data/scmUsed not found
24/09/05 20:51:48 INFO volume.HddsVolume: Creating HddsVolume: 
/tmp/hadoop-root/dfs/data/hdds of storage type : DISK capacity : 3695320843008
24/09/05 20:51:48 INFO volume.MutableVolumeSet: Added Volume : 
/tmp/hadoop-root/dfs/data/hdds to VolumeSet
24/09/05 20:51:48 INFO replication.ReplicationSupervisor: Initializing 
replication supervisor with thread count = 10
Invalid command, the testNo must be a positive integer
# du -sh /tmp/hadoop-root/dfs/data/hdds
4.0K    /tmp/hadoop-root/dfs/data/hdds
# ozone freon cr -h
24/09/05 20:47:55 INFO impl.MetricsConfig: Loaded properties from 
hadoop-metrics2.properties
24/09/05 20:47:55 INFO impl.MetricsSystemImpl: Scheduled Metric snapshot period 
at 30 second(s).
24/09/05 20:47:55 INFO impl.MetricsSystemImpl: ozone-freon metrics system 
started
Usage: ozone freon cr [-fhV] [--verbose] [--datanode=<datanode>]
                      [--duration=<duration>] [-n=<testNo>] [-p=<prefix>]
                      [-t=<threadNo>]
Replicate / download closed containers.
      --datanode=<datanode>
                          Replicate only containers on this specific datanode.
                            Default:
      --duration=<duration>
                          Duration to run the test.  Can be '30s', '5m', '1h',
                            '7d' etc..
  -f, --fail-at-end       If turned on, all the tasks will be executed even if
                            there are failures.
  -h, --help              Show this help message and exit.
  -n, --number-of-tests=<testNo>
                          Number of the generated objects.
                            Default: 1000
  -p, --prefix=<prefix>   Unique identifier of the test execution. Usually used
                            as a prefix of the generated object names. If
                            empty, a random name will be generated
                            Default:
  -t, --thread, --threads=<threadNo>
                          Number of threads used to execute
                            Default: 10
  -V, --version           Print version information and exit.
      --verbose           More verbose output. Show all the command line Option
                            info. 
 {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to