Skip to content

Commit 1208c23

Browse files
aleksbykovsoyacz
authored andcommitted
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 ba09308 commit 1208c23

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

sdcm/sct_events/setup.py

+8
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
EVENTS_GRAFANA_ANNOTATOR_ID, EVENTS_GRAFANA_AGGREGATOR_ID, EVENTS_GRAFANA_POSTMAN_ID, \
3434
EventsProcessesRegistry, create_default_events_process_registry, get_events_process, EVENTS_HANDLER_ID, EVENTS_COUNTER_ID
3535
from sdcm.utils.issues import SkipPerIssues
36+
from sdcm.sct_events.group_common_events import ignore_topology_change_coordinator_errors
3637

3738

3839
EVENTS_DEVICE_START_DELAY = 1 # seconds
@@ -148,5 +149,12 @@ def enable_default_filters(sct_config: SCTConfiguration): # pylint: disable=unu
148149
event_class=DatabaseLogEvent.ABORTING_ON_SHARD,
149150
regex=r'.*Parent connection [\d]+ is aborting on shard').publish()
150151

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

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

0 commit comments

Comments
 (0)