sarvekshayr commented on PR #10596:
URL: https://github.com/apache/ozone/pull/10596#issuecomment-4796362775

   >  What about `Number of Threads`?
   
   `--num-of-threads` and `--num-of-validate-threads` when `--validate-writes` 
is set throws an `IllegalArgumentException`.
   ```
   bash-5.1$ ozone freon rk --numOfVolumes=1 --numOfBuckets=1 --numOfKeys=1 
--num-of-threads=-1 
   2026-06-25 05:52:07,393 [main] INFO freon.RandomKeyGenerator: Number of 
Threads: -1
   java.lang.IllegalArgumentException
           at 
java.base/java.util.concurrent.ThreadPoolExecutor.<init>(ThreadPoolExecutor.java:1311)
           at 
java.base/java.util.concurrent.ThreadPoolExecutor.<init>(ThreadPoolExecutor.java:1197)
           at 
java.base/java.util.concurrent.Executors.newFixedThreadPool(Executors.java:94)
           at 
org.apache.hadoop.ozone.freon.RandomKeyGenerator.call(RandomKeyGenerator.java:327)
           at 
org.apache.hadoop.ozone.freon.RandomKeyGenerator.call(RandomKeyGenerator.java:88)
           ...
   ```
   @sravani-revuri let's extend `validateCounts()` to include these options as 
well.
   
   


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