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

benedict pushed a commit to branch cep-15-accord
in repository https://gitbox.apache.org/repos/asf/cassandra.git

commit 4d75ec7bb5daa006646819ffea645fe97864cdc0
Author: David Capwell <[email protected]>
AuthorDate: Wed Dec 4 11:01:19 2024 -0800

    while testing failure during query result handling, an edge case where 
topology before is null was found
---
 .../apache/cassandra/simulator/paxos/PaxosTopologyChangeVerifier.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/test/simulator/main/org/apache/cassandra/simulator/paxos/PaxosTopologyChangeVerifier.java
 
b/test/simulator/main/org/apache/cassandra/simulator/paxos/PaxosTopologyChangeVerifier.java
index 46c4c9ecf6..42a80b9121 100644
--- 
a/test/simulator/main/org/apache/cassandra/simulator/paxos/PaxosTopologyChangeVerifier.java
+++ 
b/test/simulator/main/org/apache/cassandra/simulator/paxos/PaxosTopologyChangeVerifier.java
@@ -58,7 +58,7 @@ public class PaxosTopologyChangeVerifier implements 
TopologyChangeValidator
     @Override
     public void after(Topology topologyAfter)
     {
-        afterInternal(topologyAfter.select(topologyBefore.primaryKeys));
+        afterInternal(topologyBefore == null ? topologyAfter : 
topologyAfter.select(topologyBefore.primaryKeys));
     }
 
     public void afterInternal(Topology topologyAfter)


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

Reply via email to