From 359999d7394ca170b822dcfd402159a5ac21bbac Mon Sep 17 00:00:00 2001 From: Jacek Poreda Date: Wed, 30 Aug 2023 11:32:20 +0200 Subject: [PATCH] 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 --- .../org/sonar/process/cluster/hz/HazelcastMemberBuilder.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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")); -- 2.39.5