Skip to content

Commit 3a507ac

Browse files
authored
Fix flaky clustering ITs (#635)
1 parent 4383c3f commit 3a507ac

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

neo4j.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,14 @@ def start(self, image, initial_members, network):
190190
"NEO4J_initial_dbms_default__primaries__count":
191191
str(len(initial_members)),
192192
})
193+
if self._version < (5, 16):
194+
# Bug in server which can lead to the server SSRing a query
195+
# to itself in an infinite loop.
196+
# https://trello.com/c/NvCIKscB/1216-erroneous-auto-ssring
197+
env_map.update({
198+
"NEO4J_dbms_cluster_raft_leader__transfer_balancing__strategy": # noqa: E501
199+
"NO_BALANCING", # noqa: E131
200+
})
193201

194202
logs_path = join(self._artifacts_path, "logs")
195203
os.makedirs(logs_path, exist_ok=True)

0 commit comments

Comments
 (0)