adoroszlai opened a new pull request, #12119:
URL: https://github.com/apache/ozone/pull/12119
## What changes were proposed in this pull request?
Speed up `xcompat` tests by using the batch execution library added in
HDDS-17800.
- Currently only 2.3.0 client can benefit from batch executions. Older
clients fall back to per-command execution.
- Snapshot read test cases repeat execution if needed (`Wait For ...`), so
they also not part of the batch.
- Test cases where `ozone sh` and `ozone fs` commands were mixed are now
split.
- `ozone fs` and other non-batched commands are moved to the end of the test
suite, after the batch has run.
Also fix the bug that `ShellReplicationOptions` retained state between
executions in the same interactive shell.
```
ozone sh> volume create /vol1
ozone sh> bucket create /vol1/bucket1
ozone sh> bucket create -t EC -r rs-3-2-1024k /vol1/bucket2
ozone sh> bucket create /vol1/bucket3
ozone sh> bucket info /vol1/bucket1
{
...
(no replicationConfig)
...
}
ozone sh> bucket info /vol1/bucket3
{
...
"replicationConfig" : {
"data" : 3,
"parity" : 2,
"ecChunkSize" : 1048576,
"codec" : "RS",
"replicationType" : "EC",
"requiredNodes" : 5,
"minimumNodes" : 3
},
...
}
```
https://issues.apache.org/jira/browse/HDDS-17837
## How was this patch tested?
Times (in seconds) from one
[before](https://github.com/apache/ozone/actions/runs/44737546230) and
[after](https://github.com/adoroszlai/ozone/actions/runs/44796819757) run:
| split | before | after | saved |
| old-1.1.0 | 155 | 73 | 82 |
| old-1.2.1 | 114 | 96 | 17 |
| old-1.3.0 | 279 | 237 | 42 |
| old-1.4.1 | 478 | 344 | 134 |
| old-2.0.0 | 471 | 225 | 245 |
| old-2.1.2 | 359 | 275 | 84 |
| old-2.2.1 | 505 | 231 | 273 |
| new | 1258 | 1119 | 139 |
(Some variation may be due to generally slower runner environment, which can
go either way.)
--
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]