From 02ecda535c4bd057e3b40b7a0fb9dad11fe3d9fd Mon Sep 17 00:00:00 2001 From: Ivan Kozlovic Date: Tue, 16 Aug 2022 18:02:21 -0600 Subject: [PATCH] Stop the raft node to not cause test to flap. Test TestNoRaceJetStreamClusterCorruptWAL() would start to flap because of the snapshot on cluster shutdown. Disable the snapshot on exit for this test by stopping the raft node before shutdown. Signed-off-by: Ivan Kozlovic --- server/norace_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/norace_test.go b/server/norace_test.go index 80c85f8c..c0ba0347 100644 --- a/server/norace_test.go +++ b/server/norace_test.go @@ -3562,6 +3562,8 @@ func TestNoRaceJetStreamClusterCorruptWAL(t *testing.T) { } // Grab underlying raft node and the WAL (filestore) and we will attempt to "corrupt" it. node := o.raftNode().(*raft) + // We are doing a stop here to prevent the internal consumer snapshot from happening on exit + node.Stop() fs := node.wal.(*fileStore) fcfg, cfg := fs.fcfg, fs.cfg.StreamConfig // Stop all the servers.