use of com.hazelcast.test.SplitBrainTestSupport in project hazelcast by hazelcast.
the class JetSplitBrainTestSupport method healSplitBrain.
private void healSplitBrain(HazelcastInstance[] instances, int firstSubClusterSize) {
applyOnBrains(instances, firstSubClusterSize, SplitBrainTestSupport::unblockCommunicationBetween);
if (unblacklistHint) {
applyOnBrains(instances, firstSubClusterSize, JetSplitBrainTestSupport::unblacklistJoinerBetween);
}
for (HazelcastInstance instance : instances) {
assertClusterSizeEventually(instances.length, instance);
}
waitAllForSafeState(instances);
}
use of com.hazelcast.test.SplitBrainTestSupport in project hazelcast-jet by hazelcast.
the class JetSplitBrainTestSupport method healSplitBrain.
private void healSplitBrain(JetInstance[] instances, int firstSubClusterSize) {
applyOnBrains(instances, firstSubClusterSize, SplitBrainTestSupport::unblockCommunicationBetween);
if (unblacklistHint) {
applyOnBrains(instances, firstSubClusterSize, JetSplitBrainTestSupport::unblacklistJoinerBetween);
}
for (JetInstance instance : instances) {
assertClusterSizeEventually(instances.length, instance.getHazelcastInstance());
}
waitAllForSafeState(Stream.of(instances).map(JetInstance::getHazelcastInstance).collect(toList()));
}
Aggregations