Skip to content
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

RATIS-1144. Default disable datastream when start a MiniRaftCluster #266

Merged
merged 1 commit into from Nov 10, 2020
Merged

RATIS-1144. Default disable datastream when start a MiniRaftCluster #266

merged 1 commit into from Nov 10, 2020

Conversation

runzhiwang
Copy link
Contributor

What changes were proposed in this pull request?

Default disable datastream when start a MiniRaftCluster, so that the other test no need to start data stream server, to make the CI run faster.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/RATIS-1144

How was this patch tested?

no need to add new ut.

Copy link
Contributor

@szetszwo szetszwo left a comment

Choose a reason for hiding this comment

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

+1

@szetszwo szetszwo merged commit 05eaa70 into apache:master Nov 10, 2020
@amaliujia
Copy link
Contributor

+1

@@ -96,6 +96,7 @@ private void testCloseStream(int leaderIndex, int numServers) throws Exception {
RaftPeerId peerId = RaftPeerId.valueOf("s" + i);
RaftProperties properties = new RaftProperties();
NettyConfigKeys.DataStream.setPort(properties, NetUtils.createLocalServerAddress().getPort());
RaftConfigKeys.DataStream.setType(properties, SupportedDataStreamType.NETTY);
Copy link
Contributor

Choose a reason for hiding this comment

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

This line is redundant. If you check line 61 this config is already be set.

Copy link
Contributor

Choose a reason for hiding this comment

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

hmmm I see RaftProperties properties = new RaftProperties(); is not using the existing properties.

I will take a look and maybe fix this in my branch.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@amaliujia It's a mock RaftServer, will not use properties set at line 61.

Copy link
Contributor

Choose a reason for hiding this comment

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

O I see. thanks for clarification

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants