-
Notifications
You must be signed in to change notification settings - Fork 3.8k
CASSANDRA-20926 mutation tracking config #4395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CASSANDRA-20926 mutation tracking config #4395
Conversation
| if (SchemaConstants.isSystemKeyspace(keyspaceName)) | ||
| throw ire("Mutation tracking is not supported on system keyspaces"); | ||
|
|
||
| if (!DatabaseDescriptor.getMutationTrackingEnabled()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@beobal Thanks for the note. I'm going to pick this up soon...
| if (SchemaConstants.isSystemKeyspace(keyspaceName)) | ||
| throw ire("Mutation tracking is not supported on system keyspaces"); | ||
|
|
||
| if (!DatabaseDescriptor.getMutationTrackingEnabled()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same point as on AlterKeyspaceStatement applies here
|
Closed in favor of #4559, but the open comments in this PR still need to be addressed... |
No description provided.