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

Initialize SplitBrainProtectionConfig with valid values #17918

Merged
merged 1 commit into from
Dec 2, 2020

Conversation

pivovarit
Copy link
Contributor

@pivovarit pivovarit commented Dec 2, 2020

When relying on the SplitBrainProtectionConfig constructors, it ends up initialized in an invalid state.

The minimum cluster size configured for split-brain protection can't be lower than 2, but it defaults to 0:

SplitBrainProtectionConfig splitBrainProtectionConfig = new SplitBrainProtectionConfig();
System.out.println(splitBrainProtectionConfig.getMinimumClusterSize()); // 0

Related: #17874

@pivovarit pivovarit merged commit 0c3bed7 into hazelcast:master Dec 2, 2020
@pivovarit pivovarit deleted the minimal-cluster-size-sb branch December 2, 2020 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants