You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@cassandra.apache.org by "bdeggleston (via GitHub)" <gi...@apache.org> on 2025/09/25 20:22:21 UTC
[PR] C20926 mutation tracking config [cassandra]
bdeggleston opened a new pull request, #4395:
URL: https://github.com/apache/cassandra/pull/4395
(no comment)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org
Re: [PR] CASSANDRA-20926 mutation tracking config [cassandra]
Posted by "maedhroz (via GitHub)" <gi...@apache.org>.
maedhroz commented on code in PR #4395:
URL: https://github.com/apache/cassandra/pull/4395#discussion_r2615475911
##########
src/java/org/apache/cassandra/cql3/statements/schema/AlterKeyspaceStatement.java:
##########
@@ -87,6 +87,15 @@ public Keyspaces apply(ClusterMetadata metadata)
if (attrs.getReplicationStrategyClass() != null && attrs.getReplicationStrategyClass().equals(SimpleStrategy.class.getSimpleName()))
Guardrails.simpleStrategyEnabled.ensureEnabled(state);
+ if (newKeyspace.params.replicationType.isTracked() && !keyspace.params.replicationType.isTracked())
+ {
+ if (SchemaConstants.isSystemKeyspace(keyspaceName))
+ throw ire("Mutation tracking is not supported on system keyspaces");
+
+ if (!DatabaseDescriptor.getMutationTrackingEnabled())
Review Comment:
@beobal Thanks for the note. I'm going to pick this up soon...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org
Re: [PR] CASSANDRA-20926 mutation tracking config [cassandra]
Posted by "maedhroz (via GitHub)" <gi...@apache.org>.
maedhroz closed pull request #4395: CASSANDRA-20926 mutation tracking config
URL: https://github.com/apache/cassandra/pull/4395
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org
Re: [PR] CASSANDRA-20926 mutation tracking config [cassandra]
Posted by "maedhroz (via GitHub)" <gi...@apache.org>.
maedhroz commented on PR #4395:
URL: https://github.com/apache/cassandra/pull/4395#issuecomment-3745934679
Closed in favor of https://github.com/apache/cassandra/pull/4559, but the open comments in this PR still need to be addressed...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org
Re: [PR] CASSANDRA-20926 mutation tracking config [cassandra]
Posted by "beobal (via GitHub)" <gi...@apache.org>.
beobal commented on code in PR #4395:
URL: https://github.com/apache/cassandra/pull/4395#discussion_r2611535707
##########
src/java/org/apache/cassandra/cql3/statements/schema/AlterKeyspaceStatement.java:
##########
@@ -87,6 +87,15 @@ public Keyspaces apply(ClusterMetadata metadata)
if (attrs.getReplicationStrategyClass() != null && attrs.getReplicationStrategyClass().equals(SimpleStrategy.class.getSimpleName()))
Guardrails.simpleStrategyEnabled.ensureEnabled(state);
+ if (newKeyspace.params.replicationType.isTracked() && !keyspace.params.replicationType.isTracked())
+ {
+ if (SchemaConstants.isSystemKeyspace(keyspaceName))
+ throw ire("Mutation tracking is not supported on system keyspaces");
+
+ if (!DatabaseDescriptor.getMutationTrackingEnabled())
Review Comment:
We'll need to move this, and probably some of the other pre-existing validation, out of `apply` and into `validate`.
DDL statements are encoded as entries in the metadata log and once committed must be able to be applied by all nodes, so divergent config across instances would create an issue here.
Also, log entries may be replayed after a bounce and changes to config could interfere with that & prevent the node from coming back up (c.f. CASSANDRA-20452)
##########
src/java/org/apache/cassandra/cql3/statements/schema/CreateKeyspaceStatement.java:
##########
@@ -83,6 +84,17 @@ public Keyspaces apply(ClusterMetadata metadata)
KeyspaceMetadata keyspaceMetadata = KeyspaceMetadata.create(keyspaceName, attrs.asNewKeyspaceParams());
+ if (keyspaceMetadata.params.replicationType.isTracked())
+ {
+ if (SchemaConstants.isSystemKeyspace(keyspaceName))
+ throw ire("Mutation tracking is not supported on system keyspaces");
+
+ if (!DatabaseDescriptor.getMutationTrackingEnabled())
Review Comment:
Same point as on `AlterKeyspaceStatement` applies here
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org