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

maedhroz 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 b67f4e2c2a Disable mutation tracking by default in CassandraGenerators
b67f4e2c2a is described below

commit b67f4e2c2a50aa3a70909a76357f4a9279ac2e15
Author: Caleb Rackliffe <[email protected]>
AuthorDate: Mon Oct 6 15:35:55 2025 -0500

    Disable mutation tracking by default in CassandraGenerators
    
    patch by Caleb Rackliffe; reviewed by Blake Eggleston for CASSANDRA-20944
---
 .../org/apache/cassandra/utils/CassandraGenerators.java | 17 -----------------
 1 file changed, 17 deletions(-)

diff --git a/test/unit/org/apache/cassandra/utils/CassandraGenerators.java 
b/test/unit/org/apache/cassandra/utils/CassandraGenerators.java
index 7d529fa319..b95feea400 100644
--- a/test/unit/org/apache/cassandra/utils/CassandraGenerators.java
+++ b/test/unit/org/apache/cassandra/utils/CassandraGenerators.java
@@ -516,7 +516,6 @@ public final class CassandraGenerators
                 AbstractReplicationStrategy replication = 
replicationGen.generate(rs).withKeyspace(nameGen).build(replicationType).generate(rs);
                 ReplicationParams replicationParams = 
ReplicationParams.fromStrategy(replication);
                 boolean durableWrites = durableWritesGen.generate(rs);
-                // TODO: Support tracked
                 KeyspaceParams params = new KeyspaceParams(durableWrites, 
replicationParams, FastPathStrategy.simple(), replicationType);
                 Tables tables = Tables.none();
                 Views views = Views.none();
@@ -958,7 +957,6 @@ public final class CassandraGenerators
         private Gen<Integer> numClusteringColumnsGen = 
SourceDSL.integers().between(1, 2);
         private Gen<Integer> numRegularColumnsGen = 
SourceDSL.integers().between(1, 5);
         private Gen<Integer> numStaticColumnsGen = 
SourceDSL.integers().between(0, 2);
-        private Gen<ReplicationType> replicationTypeGen = 
SourceDSL.arbitrary().enumValues(ReplicationType.class);
         @Nullable
         private ColumnNameGen columnNameGen = null;
         private TableParamsBuilder paramsBuilder = new TableParamsBuilder();
@@ -999,19 +997,6 @@ public final class CassandraGenerators
             return withPartitioner(i -> partitioner);
         }
 
-        public TableMetadataBuilder withReplicationType(Gen<ReplicationType> 
replicationTypeGen)
-        {
-            this.replicationTypeGen = 
Objects.requireNonNull(replicationTypeGen);
-            return this;
-        }
-
-        public TableMetadataBuilder withReplicationType(ReplicationType 
replicationType)
-        {
-            return withReplicationType(r -> replicationType);
-        }
-
-
-
         public TableMetadataBuilder withUseCounter(boolean useCounter)
         {
             return withUseCounter(ignore -> useCounter);
@@ -1199,12 +1184,10 @@ public final class CassandraGenerators
                 String tableName = tableNameGen.generate(rnd);
                 TableParams params = paramsBuilder.build().generate(rnd);
                 boolean isCounter = useCounter.generate(rnd);
-                ReplicationType replicationType = 
replicationTypeGen.generate(rnd);
                 TableMetadata.Builder builder = TableMetadata.builder(ks, 
tableName, tableIdGen.generate(rnd))
                                                              
.partitioner(partitionerGen.generate(rnd))
                                                              
.kind(tableKindGen.generate(rnd))
                                                              
.isCounter(isCounter)
-                                                             
.keyspaceReplicationType(replicationType)
                                                              .params(params);
 
                 int numPartitionColumns = numPartitionColumnsGen.generate(rnd);


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

Reply via email to