Skip to content

Commit 1686dc1

Browse files
committed
fix(longevity_test): Set ignore raft topology connection close error globally
Error: 'raft_topology - topology change coordinator fiber got error (connection is closed))' Could appeared in different moment when node/nodes are being restarted. As described in issue: scylladb/scylladb#20950 in comment: scylladb/scylladb#20950 (comment) the error message could appeared while we have race between raft and gossip. we can ignore this issue while issue will not be fixed on scylla side, gossip mode will be removed from scylla.
1 parent bddec8a commit 1686dc1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

sdcm/sct_events/setup.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
EVENTS_GRAFANA_ANNOTATOR_ID, EVENTS_GRAFANA_AGGREGATOR_ID, EVENTS_GRAFANA_POSTMAN_ID, \
3535
EventsProcessesRegistry, create_default_events_process_registry, get_events_process, EVENTS_HANDLER_ID, EVENTS_COUNTER_ID
3636
from sdcm.utils.issues import SkipPerIssues
37+
from sdcm.sct_events.group_common_events import ignore_topology_change_coordinator_errors
3738

3839

3940
EVENTS_DEVICE_START_DELAY = 1 # seconds
@@ -151,5 +152,11 @@ def enable_default_filters(sct_config: SCTConfiguration): # pylint: disable=unu
151152
event_class=DatabaseLogEvent.ABORTING_ON_SHARD,
152153
regex=r'.*Parent connection [\d]+ is aborting on shard').publish()
153154

155+
# As written in https://github.com/scylladb/scylladb/issues/20950#issuecomment-2411387784
156+
# raft error messages with connection close could be ignored during topology operations,
157+
# upgrades and any place where the race between raft global barrier and gossipier could
158+
# take place. So ignore such messages globally for any sct test.
159+
ignore_topology_change_coordinator_errors().__enter__()
160+
154161

155162
__all__ = ("start_events_device", "stop_events_device", "enable_default_filters")

0 commit comments

Comments
 (0)