This is an automated email from the ASF dual-hosted git repository.

brandonwilliams pushed a commit to branch cassandra-4.0
in repository https://gitbox.apache.org/repos/asf/cassandra.git


The following commit(s) were added to refs/heads/cassandra-4.0 by this push:
     new 7ffbd714b4 Set setIsShutdownUnsafeForTests(true) in dtests to fix 
shutdown race condition
7ffbd714b4 is described below

commit 7ffbd714b4808f7f05b2cee60d2d88a8b6dee05f
Author: Kristijonas Zalys <[email protected]>
AuthorDate: Sat Oct 26 15:14:10 2024 -0700

    Set setIsShutdownUnsafeForTests(true) in dtests to fix shutdown race 
condition
    
    Patch by Kristijonas Zalys, reviewed by brandonwilliams and mck for
    CASSANDRA-18440
---
 test/distributed/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))


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to