-
Notifications
You must be signed in to change notification settings - Fork 595
HDDS-10291. Set simple properties in MiniOzoneCluster via Configuration #6186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
hemantk-12
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @adoroszlai for the clean up and reorganizing.
Overall looks good to me. Left one suggestion comment and other one is more of a question.
One more thing, we can also remove setNumDatanodes(3) because 3 is default value.
...ne/integration-test/src/test/java/org/apache/hadoop/ozone/dn/ratis/TestDnRatisLogParser.java
Show resolved
Hide resolved
...ozone/integration-test/src/test/java/org/apache/hadoop/hdds/scm/pipeline/TestSCMRestart.java
Show resolved
Hide resolved
|
Thanks @hemantk-12 for the review.
I agree, but this patch is only part of a multi-step cleanup task (HDDS-6739), it does not try to fix all items. |
|
Thanks a lot @hemantk-12 for the review. |
What changes were proposed in this pull request?
Set the following properties directly in
Configurationinstead of using methods ofMiniOzoneCluster.Builder:hbIntervalhbProcessorIntervalomLayoutVersionpipelineNumLimitscmLayoutVersionDefault values are added to
ozone-site.xmlforintegration-test, where applicable.Remove heartbeat config from
Test2WayCommitInRatis,TestQueryNode. Previously these set it viaConfiguration, but not viaMiniOzoneCluster, which overwrote them with its defaults. Now after removing the config fromMiniOzoneCluster, these tests suddenly started failing due to the custom heartbeat intervals.https://issues.apache.org/jira/browse/HDDS-10291
How was this patch tested?
CI:
https://github.com/adoroszlai/ozone/actions/runs/7806174237