From 7ffbd714b4808f7f05b2cee60d2d88a8b6dee05f Mon Sep 17 00:00:00 2001 From: Kristijonas Zalys Date: Sat, 26 Oct 2024 15:14:10 -0700 Subject: [PATCH] Set setIsShutdownUnsafeForTests(true) in dtests to fix shutdown race condition Patch by Kristijonas Zalys, reviewed by brandonwilliams and mck for CASSANDRA-18440 --- .../org/apache/cassandra/distributed/impl/Instance.java | 1 + 1 file changed, 1 insertion(+) diff --git a/test/distributed/org/apache/cassandra/distributed/impl/Instance.java b/test/distributed/org/apache/cassandra/distributed/impl/Instance.java index 39f5e980af..a8c948c25d 100644 --- a/test/distributed/org/apache/cassandra/distributed/impl/Instance.java +++ b/test/distributed/org/apache/cassandra/distributed/impl/Instance.java @@ -794,6 +794,7 @@ public class Instance extends IsolatedExecutor implements IInvokableInstance error = parallelRun(error, executor, () -> StorageService.instance.setRpcReady(false), + () -> StorageService.instance.setIsShutdownUnsafeForTests(true), CassandraDaemon.getInstanceForTesting()::destroyClientTransports); if (config.has(GOSSIP) || config.has(NETWORK))