You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "priyeshkaratha (via GitHub)" <gi...@apache.org> on 2025/04/07 08:12:46 UTC
[PR] HDDS-12350. Reduce duplication between OmBucketReadWrite tests [ozone]
priyeshkaratha opened a new pull request, #8241:
URL: https://github.com/apache/ozone/pull/8241
## What changes were proposed in this pull request?
TestOmBucketReadWriteFileOps and TestOmBucketReadWriteKeyOps contain lots of duplicated code. Some of it is refactored as part of [HDDS-12315](https://issues.apache.org/jira/browse/HDDS-12315). The goal of this task is to further clean them up.
- extract ParameterBuilder to a separate class
- deduplicate verifyOMLockMetrics
- share common parameters if possible
- add explanations for test case parameters (why we test with these specific values)
## What is the link to the Apache JIRA
[HDDS-12350](https://issues.apache.org/jira/browse/HDDS-12350)
## How was this patch tested?
The changes in the patch are fully integration tested and validated by running test cases locally as well as through [CI actions](https://github.com/priyeshkaratha/ozone/actions/runs/14303585103).
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-12350. Reduce duplication between OmBucketReadWrite tests [ozone]
Posted by "adoroszlai (via GitHub)" <gi...@apache.org>.
adoroszlai commented on PR #8241:
URL: https://github.com/apache/ozone/pull/8241#issuecomment-2813430994
Thanks @priyeshkaratha for the patch, @tanvipenumudy for the review.
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-12350. Reduce duplication between OmBucketReadWrite tests [ozone]
Posted by "priyeshkaratha (via GitHub)" <gi...@apache.org>.
priyeshkaratha commented on code in PR #8241:
URL: https://github.com/apache/ozone/pull/8241#discussion_r2046148577
##########
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/freon/TestOmBucketReadWriteFileOps.java:
##########
@@ -54,7 +52,8 @@ static List<ParameterBuilder> parameters() {
.setNumOfWriteOperations(5)
.setReadThreadPercentage(70)
.setCountForRead(10)
- .setCountForWrite(5),
+ .setCountForWrite(5)
+ .setDescription("default"),
Review Comment:
Thanks @tanvipenumudy. Adding a description will make the logs easier to understand for everyone.
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-12350. Reduce duplication between OmBucketReadWrite tests [ozone]
Posted by "tanvipenumudy (via GitHub)" <gi...@apache.org>.
tanvipenumudy commented on PR #8241:
URL: https://github.com/apache/ozone/pull/8241#issuecomment-2803719082
@priyeshkaratha could you also please rebase the patch over the latest master and resolve the merge conflicts? Thanks!
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-12350. Reduce duplication between OmBucketReadWrite tests [ozone]
Posted by "tanvipenumudy (via GitHub)" <gi...@apache.org>.
tanvipenumudy commented on code in PR #8241:
URL: https://github.com/apache/ozone/pull/8241#discussion_r2043515237
##########
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/freon/TestOmBucketReadWriteFileOps.java:
##########
@@ -54,7 +52,8 @@ static List<ParameterBuilder> parameters() {
.setNumOfWriteOperations(5)
.setReadThreadPercentage(70)
.setCountForRead(10)
- .setCountForWrite(5),
+ .setCountForWrite(5)
+ .setDescription("default"),
Review Comment:
I was thinking if we can remove the setDescription() field from the test inputs, since they're primarily for developer understanding and not used functionally in the test logic. Instead, we can rely on inline comments or Java docs to explain the test cases.
But I am okay with the current implementation 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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-12350. Reduce duplication between OmBucketReadWrite tests [ozone]
Posted by "adoroszlai (via GitHub)" <gi...@apache.org>.
adoroszlai merged PR #8241:
URL: https://github.com/apache/ozone/pull/8241
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org