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

frankgh pushed a commit to branch cep-45-mutation-tracking
in repository https://gitbox.apache.org/repos/asf/cassandra.git


The following commit(s) were added to refs/heads/cep-45-mutation-tracking by 
this push:
     new f182f00869 ninja fix: fix CoordinatorLogOffsetsTest for CASSANDRA-21626
f182f00869 is described below

commit f182f008699a562915cfcebf5a8d7e580a867080
Author: Francisco Guerrero <[email protected]>
AuthorDate: Wed Oct 7 11:55:46 2026 -0700

    ninja fix: fix CoordinatorLogOffsetsTest for CASSANDRA-21626
---
 .../org/apache/cassandra/replication/CoordinatorLogOffsetsTest.java  | 5 +++++
 1 file changed, 5 insertions(+)

diff --git 
a/test/unit/org/apache/cassandra/replication/CoordinatorLogOffsetsTest.java 
b/test/unit/org/apache/cassandra/replication/CoordinatorLogOffsetsTest.java
index b51227904c..ca6b63298f 100644
--- a/test/unit/org/apache/cassandra/replication/CoordinatorLogOffsetsTest.java
+++ b/test/unit/org/apache/cassandra/replication/CoordinatorLogOffsetsTest.java
@@ -39,6 +39,7 @@ import accord.utils.Gen;
 import accord.utils.Gens;
 
 import org.apache.cassandra.config.DatabaseDescriptor;
+import org.apache.cassandra.db.Keyspace;
 import org.apache.cassandra.db.Mutation;
 import org.apache.cassandra.db.commitlog.CommitLog;
 import org.apache.cassandra.db.marshal.Int32Type;
@@ -273,6 +274,10 @@ public class CoordinatorLogOffsetsTest
         ClusterMetadataTestHelper.commit(new 
AlterSchema(SchemaTransformations.addTable(tableMetadata, false)));
 
         CommitLog.instance.start();
+
+        Keyspace.setInitialized();
+        
ClusterMetadata.current().schema.initializeKeyspaceInstances(DistributedSchema.empty(),
 false);
+
         MutationTrackingService.start(unused -> metadata);
 
         // Eventually, will also run perturbations before checking 
isReconciled (like log truncation, durability, etc.)


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

Reply via email to