cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Stupp (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-10383) Disable auto snapshot on selected tables.
Date Tue, 17 Nov 2015 15:23:11 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-10383?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15008820#comment-15008820
] 

Robert Stupp commented on CASSANDRA-10383:
------------------------------------------

Although the patch looks good, we have to delay it until 4.0.
Reason for that is that schema tables must stay unchanged within all 3.x versions - otherwise
the node that does not know about the new column will fail do deserialize mutations. What
we would need is a messaging-version bump, which will not happen before 4.0.
There will be a new schema-change protocol without these limitations - but that would require
a messaging-version bump, too.

{code}
java.lang.RuntimeException: Unknown column allow_auto_snapshot during deserialization
	at org.apache.cassandra.db.Columns$Serializer.deserialize(Columns.java:432) ~[main/:na]
	at org.apache.cassandra.db.SerializationHeader$Serializer.deserializeForMessaging(SerializationHeader.java:397)
~[main/:na]
	at org.apache.cassandra.db.rows.UnfilteredRowIteratorSerializer.deserializeHeader(UnfilteredRowIteratorSerializer.java:190)
~[main/:na]
	at org.apache.cassandra.db.partitions.PartitionUpdate$PartitionUpdateSerializer.deserialize30(PartitionUpdate.java:635)
~[main/:na]
	at org.apache.cassandra.db.partitions.PartitionUpdate$PartitionUpdateSerializer.deserialize(PartitionUpdate.java:623)
~[main/:na]
	at org.apache.cassandra.db.Mutation$MutationSerializer.deserialize(Mutation.java:323) ~[main/:na]
	at org.apache.cassandra.db.Mutation$MutationSerializer.deserialize(Mutation.java:332) ~[main/:na]
	at org.apache.cassandra.service.MigrationManager$MigrationsSerializer.deserialize(MigrationManager.java:589)
~[main/:na]
	at org.apache.cassandra.service.MigrationManager$MigrationsSerializer.deserialize(MigrationManager.java:572)
~[main/:na]
	at org.apache.cassandra.net.MessageIn.read(MessageIn.java:114) ~[main/:na]
	at org.apache.cassandra.net.IncomingTcpConnection.receiveMessage(IncomingTcpConnection.java:188)
~[main/:na]
{code}


> Disable auto snapshot on selected tables.
> -----------------------------------------
>
>                 Key: CASSANDRA-10383
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-10383
>             Project: Cassandra
>          Issue Type: Improvement
>            Reporter: Tommy Stendahl
>            Assignee: Tommy Stendahl
>              Labels: doc-impacting
>         Attachments: 10383.txt
>
>
> I have a use case where I would like to turn off auto snapshot for selected tables, I
don't want to turn it off completely since its a good feature. Looking at the code I think
it would be relatively easy to fix.
> My plan is to create a new table property named something like "disable_auto_snapshot".
If set to false it will prevent auto snapshot on the table, if set to true auto snapshot will
be controlled by the "auto_snapshot" property in the cassandra.yaml. Default would be true.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message