Sam Tunnicliffe created CASSANDRA-21001:
-------------------------------------------

             Summary: Don't submit AlterSchemaStatements which produce no 
effect locally to the CMS
                 Key: CASSANDRA-21001
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-21001
             Project: Apache Cassandra
          Issue Type: Improvement
          Components: Transactional Cluster Metadata
            Reporter: Sam Tunnicliffe
            Assignee: Sam Tunnicliffe


If a DDL statement produces no effect when the coordinator performs the 
pre-submission application of the schema transformation, we can skip sending it 
to the CMS and return a Void response.

The initial implementation would submit any {{AlterSchemaStatement}} which did 
not generate an error but this can lead to many DDL operations which are in 
fact no-ops being committed to the log. One example would be a client 
application which performs a series of DDL statements with {{IF NOT EXISTS}} 
clauses whenever it starts up. This is strictly correct, as the operations will 
all be no-op'd when applied by the nodes in the cluster, but is somewhat 
wasteful and not intuitive.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to