[
https://issues.apache.org/jira/browse/CASSANDRA-12949?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17298751#comment-17298751
]
Alex Petrov commented on CASSANDRA-12949:
-----------------------------------------
[~aleksey] made a change to reset local params after {{ALTER}} on all branches
(and added the test). {{trunk}} now is a bit different: there is now a concept
of "local-only" metadata, which we can use for local-only changes that should
not be propagated. I've avoided, at least for now, using it across the
codebase, since arguably it's best if we only use it on the code paths where we
actually need it. Let me know what you think about this change.
> CFS.setCompressionParameters() method can affect schema globally
> ----------------------------------------------------------------
>
> Key: CASSANDRA-12949
> URL: https://issues.apache.org/jira/browse/CASSANDRA-12949
> Project: Cassandra
> Issue Type: Bug
> Components: Legacy/Distributed Metadata
> Reporter: Aleksey Yeschenko
> Assignee: Alex Petrov
> Priority: Normal
> Fix For: 2.2.x, 3.0.x, 3.11.x
>
>
> CFS.setCompressionParameters() method can affect schema globally, despite
> being intended as a way to change compression locally on just one node, for
> experimental purposes.
> CFS.setCompactionParamaters(), on the other hand, works correctly, by never
> modifying the {{CFMetaData}} object in-place.
> Its modification by CFS.setCompressionParameters() means that any subsequent
> ALTER that affects that table will pick up the change made by
> CFS.setCompressionParameters() and disseminate it to the rest of the cluster.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]