[ 
https://issues.apache.org/jira/browse/HDDS-10845?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Attila Doroszlai resolved HDDS-10845.
-------------------------------------
    Fix Version/s: 1.5.0
       Resolution: Fixed

> BaseFreonGenerator allows an empty prefix
> -----------------------------------------
>
>                 Key: HDDS-10845
>                 URL: https://issues.apache.org/jira/browse/HDDS-10845
>             Project: Apache Ozone
>          Issue Type: Improvement
>          Components: freon
>    Affects Versions: 1.4.0
>            Reporter: Hongbing Wang
>            Assignee: Hongbing Wang
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.5.0
>
>
> 1. When using `OzoneClientKeyReadWriteListOps` to read op (or mixed 
> read-write op), a random prefix will be used if no prefix is specified, 
> resulting in a 'Key xxx/x not found' error. For example:
> {noformat}
> # 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) {noformat}
> No random prefixes should be added in above case.
> 2. Printing a random prefix when using `freon ommg` can be misleading because 
> it does not use a prefix. For example:
> {noformat}
> $ 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
> {noformat}
> "prefix hrjrsaohi9" should be prefix ''.



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