Skip to content

Conversation

@amaliujia
Copy link
Contributor

@amaliujia amaliujia commented Dec 24, 2020

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)

@amaliujia amaliujia changed the title [CI] Use single ratis server in MiniOzoneCluster tests for SCM [SCM][CI] Use single ratis server in MiniOzoneCluster tests for SCM Dec 24, 2020
@amaliujia amaliujia changed the title [SCM][CI] Use single ratis server in MiniOzoneCluster tests for SCM HDDS-4622. Use single ratis server in MiniOzoneCluster tests for SCM Dec 24, 2020
@amaliujia amaliujia force-pushed the HDDS-2823-single-ratis-server branch from 9105f39 to 2468a6e Compare December 24, 2020 07:22
@amaliujia
Copy link
Contributor Author

cc: @GlenGeng

@Config(key = "ratis.storage.dir",
type = ConfigType.STRING,
defaultValue = "",
defaultValue = "scm-ratis",
Copy link
Contributor Author

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

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();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good!

@amaliujia amaliujia closed this Dec 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants