-
Notifications
You must be signed in to change notification settings - Fork 592
HDDS-4622. Use single ratis server in MiniOzoneCluster tests for SCM #1733
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
HDDS-4622. Use single ratis server in MiniOzoneCluster tests for SCM #1733
Conversation
9105f39 to
2468a6e
Compare
|
cc: @GlenGeng |
| @Config(key = "ratis.storage.dir", | ||
| type = ConfigType.STRING, | ||
| defaultValue = "", | ||
| defaultValue = "scm-ratis", |
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.
This is workaround to config SCM ratis storage dir value. The usual way that config value in SCMHAConfiguration seems break. I will file a JIRA to fix it.
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.
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.
We won't need this line of change after #1739
| GenericTestUtils.waitFor(() -> { | ||
| final int healthy = scm.getNodeCount(HEALTHY); | ||
| // When SCM HA is not enabled, scm is always leader. | ||
| final boolean checkScmLeader = scm.checkLeader(); |
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.
Good!
What changes were proposed in this pull request?
The intention is to replace MockRatisServer by production Ratis server in integration tests (tests that use
MiniOzoneClusters)What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-4622
How was this patch tested?
(Please explain how this patch was tested. Ex: unit tests, manual tests)
(If this patch involves UI changes, please attach a screen-shot; otherwise, remove this)