[
https://issues.apache.org/jira/browse/HDDS-15653?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Attila Doroszlai resolved HDDS-15653.
-------------------------------------
Fix Version/s: 2.3.0
Resolution: Fixed
> Freon randomkeys does not throw error when inputs are negative
> --------------------------------------------------------------
>
> Key: HDDS-15653
> URL: https://issues.apache.org/jira/browse/HDDS-15653
> Project: Apache Ozone
> Issue Type: Bug
> Reporter: Sravani Revuri
> Assignee: Sravani Revuri
> Priority: Minor
> Labels: pull-request-available
> Fix For: 2.3.0
>
>
> Running {{ozone freon rk}} with a negative value for --numOfVolumes ,
> --numOfBuckets or --numOfKeys does not fail with an error. Instead, the
> command prints a progress bar with negative value and hangs.
> {code:java}
> bash-5.1$ ozone freon rk --numOfVolumes=1 --numOfBuckets=1 --numOfKeys=-1
> 2026-06-24 04:37:36,027 [main] INFO freon.RandomKeyGenerator: Number of
> Threads: 10
> 2026-06-24 04:37:36,035 [main] INFO freon.RandomKeyGenerator: Number of
> Volumes: 1.
> 2026-06-24 04:37:36,035 [main] INFO freon.RandomKeyGenerator: Number of
> Buckets per Volume: 1.
> 2026-06-24 04:37:36,035 [main] INFO freon.RandomKeyGenerator: Number of Keys
> per Bucket: -1.
> 2026-06-24 04:37:36,035 [main] INFO freon.RandomKeyGenerator: Key size: 10240
> bytes
> 2026-06-24 04:37:36,036 [main] INFO freon.RandomKeyGenerator: Buffer size:
> 4096 bytes
> 2026-06-24 04:37:36,036 [main] INFO freon.RandomKeyGenerator: validateWrites
> : false
> 2026-06-24 04:37:36,036 [main] INFO freon.RandomKeyGenerator: Number of
> Validate Threads: 1
> 2026-06-24 04:37:36,036 [main] INFO freon.RandomKeyGenerator: cleanObjects :
> false
> 2026-06-24 04:37:36,038 [main] INFO freon.RandomKeyGenerator: Starting
> progress bar Thread.
> -0.00% |?
> | 0/-1 Time: 0:00:00|
> 2026-06-24 04:37:36,044 [pool-2-thread-1] INFO rpc.RpcClient: Creating
> Volume: vol-0-97512, with hadoop as owner and space quota set to -1 bytes,
> counts quota set to -1
> 2026-06-24 04:37:36,083 [pool-2-thread-2] INFO rpc.RpcClient: Creating
> Bucket: vol-0-97512/bucket-0-75850, with server-side default bucket layout,
> hadoop as owner, Versioning false, Storage Type set to DISK and Encryption
> set to false, Replication Type set to server-side default replication type,
> Namespace Quota set to -1, Space Quota set to -1
> ^C
> ***************************************************
> Status: Success
> Git Base Revision: 9d50c6884666e794e45102260a4017bb31802e1b
> Number of Volumes created: 1
> Number of Buckets created: 1
> Number of Keys added: 0
> Average Time spent in volume creation: 00:00:00,002
> Average Time spent in bucket creation: 00:00:00,001
> Average Time spent in key creation: 00:00:00,000
> Average Time spent in key write: 00:00:00,000
> Total bytes written: 0
> Total Execution time: 00:00:26,117
> ***************************************************
> {code}
> For decimal input:
> {code}
> bash-5.1$ ozone freon rk --numOfVolumes=0.1 --numOfBuckets=1 --numOfKeys=1
> Invalid value for option '--num-of-volumes': '0.1' is not an int
> {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]