From: Jacek Poreda Date: Wed, 30 Aug 2023 09:32:20 +0000 (+0200) Subject: SONAR-19978 Fix flaky `SupportedTopologyClusterTest#app_node_can_join_and_quit_cluster` X-Git-Tag: 10.2.0.77647~24 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=359999d7394ca170b822dcfd402159a5ac21bbac;p=sonarqube.git SONAR-19978 Fix flaky `SupportedTopologyClusterTest#app_node_can_join_and_quit_cluster` - Increased memory on WEB and CE processes due OOM - Introduce hz property to help with members disconnection issue, link: https://github.com/hazelcast/hazelcast/blob/master/docs/design/cluster/02-partial-member-disconnection-resolution.md --- diff --git a/server/sonar-process/src/main/java/org/sonar/process/cluster/hz/HazelcastMemberBuilder.java b/server/sonar-process/src/main/java/org/sonar/process/cluster/hz/HazelcastMemberBuilder.java index 2ccaffd6017..8237530470e 100644 --- a/server/sonar-process/src/main/java/org/sonar/process/cluster/hz/HazelcastMemberBuilder.java +++ b/server/sonar-process/src/main/java/org/sonar/process/cluster/hz/HazelcastMemberBuilder.java @@ -126,7 +126,9 @@ public class HazelcastMemberBuilder { // Don't phone home .setProperty("hazelcast.phone.home.enabled", "false") // Use slf4j for logging - .setProperty("hazelcast.logging.type", "slf4j"); + .setProperty("hazelcast.logging.type", "slf4j") + .setProperty("hazelcast.partial.member.disconnection.resolution.heartbeat.count", "5") + ; MemberAttributeConfig attributes = config.getMemberAttributeConfig(); attributes.setAttribute(Attribute.NODE_NAME.getKey(), requireNonNull(nodeName, "Node name is missing"));