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

   ## What changes were proposed in this pull request?
   
   BaseFreonGenerator allows an empty prefix instead of enforcing a random 
prefix.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-10845
   
   ## How was this patch tested?
   
   manual tests.
   
   ### case1:
   without pr:
   ```java
   # note: write first and than exe related read op
   $ ozone freon ockrw -r 1000 -t 10 --linear --contiguous --percentage-read 50 
-m=true --size=0 --duration 10s -v vol1 -b freon2
   2024-05-12 16:54:45,789 [pool-2-thread-9] ERROR 
freon.OzoneClientKeyReadWriteListOps: Key:o7h00eovbs/9 not found
   2024-05-12 16:54:45,789 [pool-2-thread-2] ERROR 
freon.OzoneClientKeyReadWriteListOps: Key:o7h00eovbs/5 not found
   2024-05-12 16:54:45,789 [pool-2-thread-1] ERROR 
freon.OzoneClientKeyReadWriteListOps: Key:o7h00eovbs/7 not found
   2024-05-12 16:54:45,789 [pool-2-thread-5] ERROR 
freon.OzoneClientKeyReadWriteListOps: Key:o7h00eovbs/0 not found
   2024-05-12 16:54:45,791 [pool-2-thread-6] ERROR freon.BaseFreonGenerator: 
Error on executing task 5
   java.lang.RuntimeException: Key:o7h00eovbs/6 not found
       at 
org.apache.hadoop.ozone.freon.OzoneClientKeyReadWriteListOps.lambda$readWriteListKeys$0(OzoneClientKeyReadWriteListOps.java:212)
       at com.codahale.metrics.Timer.time(Timer.java:116)
       at 
org.apache.hadoop.ozone.freon.OzoneClientKeyReadWriteListOps.readWriteListKeys(OzoneClientKeyReadWriteListOps.java:192)
       at 
org.apache.hadoop.ozone.freon.BaseFreonGenerator.tryNextTask(BaseFreonGenerator.java:220)
       at 
org.apache.hadoop.ozone.freon.BaseFreonGenerator.taskLoop(BaseFreonGenerator.java:200)
       at 
org.apache.hadoop.ozone.freon.BaseFreonGenerator.lambda$startTaskRunners$0(BaseFreonGenerator.java:174)
       at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
       at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
       at java.lang.Thread.run(Thread.java:748) 
   ```
   with pr, no err:
   ```
   $ ozone freon ockrw -r 1000 -t 10 --linear --contiguous --percentage-read 50 
-m=true --size=0 --duration 10s -v vol1 -b freon2
   2024-05-12 17:42:51,677 [main] INFO freon.BaseFreonGenerator: Executing test 
with prefix '' and number-of-tests 1000
   
    100.00% 
|█████████████████████████████████████████████████████████████████████████████████████████████████████|
  10/10 Time: 0:00:10|
   24-5-12 17:43:02 
===============================================================
   
   -- Timers 
----------------------------------------------------------------------
   key-read-write-list
                count = 6073
            mean rate = 671.91 calls/second
        1-minute rate = 630.00 calls/second
        5-minute rate = 630.00 calls/second
       15-minute rate = 630.00 calls/second
                  min = 0.29 milliseconds
                  max = 223.48 milliseconds
                 mean = 12.61 milliseconds
               stddev = 30.34 milliseconds
               median = 1.82 milliseconds
                 75% <= 2.95 milliseconds
                 95% <= 90.20 milliseconds
                 98% <= 93.20 milliseconds
                 99% <= 94.80 milliseconds
               99.9% <= 223.33 milliseconds
   
   
   Total execution time (sec): 10
   Failures: 0
   Successful executions: 6073
   ```
   ### case 2:
   without pr:
   ```bash
   ozone freon ommg --operation CREATE_KEY -n 25000 --duration 10 -v vol1 -b 
freon2
   2024-05-12 15:22:35,976 [main] INFO freon.BaseFreonGenerator: Executing test 
with prefix hrjrsaohi9 and number-of-tests 25000
   ```
   with pr:
   ```bash
   2024-05-12 17:45:36,898 [main] INFO freon.BaseFreonGenerator: Executing test 
with prefix '' and number-of-tests 25000
   ```
   
   
   


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