cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tommy Stendahl (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-14841) Don't write to system_distributed.repair_history, system_traces.sessions, system_traces.events in mixed version 3.X/4.0 clusters
Date Tue, 13 Nov 2018 09:52:00 GMT

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

Tommy Stendahl commented on CASSANDRA-14841:
--------------------------------------------

[~aweisberg] here is the steps to add the new columns before you start to upgrade.

For 3.0.15 and 3.11.1 and older versions:
{noformat}
cqlsh> ALTER TABLE system_distributed.repair_history ADD coordinator_port int;
cqlsh> ALTER TABLE system_distributed.repair_history ADD participants_v2 set<text>;{noformat}
For 3.0.16 and 3.11.2 and newer:
{noformat}
cqlsh> INSERT INTO system_schema.columns (keyspace_name , table_name , column_name , clustering_order
, column_name_bytes , kind , position , type ) VALUES ( 'system_distributed', 'repair_history',
'coordinator_port', 'none', 0x636f6f7264696e61746f725f706f7274, 'regular', -1, 'int');
cqlsh> INSERT INTO system_schema.columns (keyspace_name , table_name , column_name , clustering_order
, column_name_bytes , kind , position , type ) VALUES ( 'system_distributed', 'repair_history',
'participants_v2', 'none', 0x7061727469636970616e74735f7632, 'regular', -1, 'set<text>');
cqlsh> exit
$ nodetool reloadlocalschema{noformat}
Remember that the INSERT's and {{nodetool reloadschema}} must be done on the same node.

 

> Don't write to system_distributed.repair_history, system_traces.sessions, system_traces.events
in mixed version 3.X/4.0 clusters
> --------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-14841
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-14841
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Tommy Stendahl
>            Assignee: Ariel Weisberg
>            Priority: Major
>             Fix For: 4.0
>
>
> When upgrading from 3.x to 4.0 I get exceptions in the old nodes once the first 4.0 node
starts up. I have tested to upgrade from both 3.0.15 and 3.11.3 and get the same problem.
>  
> {noformat}
> 2018-10-22T11:12:05.060+0200 ERROR [MessagingService-Incoming-/10.216.193.244] CassandraDaemon.java:228
Exception in thread Thread[MessagingService-Incoming-/10.216.193.244,5,main]
> java.lang.RuntimeException: Unknown column coordinator_port during deserialization
> at org.apache.cassandra.db.Columns$Serializer.deserialize(Columns.java:452) ~[apache-cassandra-3.11.3.jar:3.11.3]
> at org.apache.cassandra.db.filter.ColumnFilter$Serializer.deserialize(ColumnFilter.java:482)
~[apache-cassandra-3.11.3.jar:3.11.3]
> at org.apache.cassandra.db.ReadCommand$Serializer.deserialize(ReadCommand.java:760) ~[apache-cassandra-3.11.3.jar:3.11.3]
> at org.apache.cassandra.db.ReadCommand$Serializer.deserialize(ReadCommand.java:697) ~[apache-cassandra-3.11.3.jar:3.11.3]
> at org.apache.cassandra.io.ForwardingVersionedSerializer.deserialize(ForwardingVersionedSerializer.java:50)
~[apache-cassandra-3.11.3.jar:3.11.3]
> at org.apache.cassandra.net.MessageIn.read(MessageIn.java:123) ~[apache-cassandra-3.11.3.jar:3.11.3]
> at org.apache.cassandra.net.IncomingTcpConnection.receiveMessage(IncomingTcpConnection.java:192)
~[apache-cassandra-3.11.3.jar:3.11.3]
> at org.apache.cassandra.net.IncomingTcpConnection.receiveMessages(IncomingTcpConnection.java:180)
~[apache-cassandra-3.11.3.jar:3.11.3]
> at org.apache.cassandra.net.IncomingTcpConnection.run(IncomingTcpConnection.java:94)
~[apache-cassandra-3.11.3.jar:3.11.3]{noformat}
> I think it was introduced by CASSANDRA-7544.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org


Mime
View raw message