You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Yongle Zhang (Jira)" <ji...@apache.org> on 2020/11/20 06:25:00 UTC

[jira] [Created] (CASSANDRA-16292) upgraded nodes encountered "Unknown column kind" RuntimeException during upgrade C* from 3.0 to 3.2

Yongle Zhang created CASSANDRA-16292:
----------------------------------------

             Summary: upgraded nodes encountered "Unknown column kind" RuntimeException during upgrade C* from 3.0 to 3.2
                 Key: CASSANDRA-16292
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-16292
             Project: Cassandra
          Issue Type: Bug
            Reporter: Yongle Zhang


We tried to upgrade a 3.0.21 C* cluster to 3.2 and run into the following runtime exception. 

 

Error message: 

 
{code:java}
➜  hdfs git:(yongle) ✗ vim
INFO  04:56:43 Initializing system_schema.dropped_columns
ERROR 04:56:43 Exception in thread Thread[SSTableBatchOpen:2,5,main]
java.lang.RuntimeException: Unknown column kind during deserialization
  at org.apache.cassandra.db.SerializationHeader$Component.toHeader(SerializationHeader.java:331) ~[main/:na]
  at org.apache.cassandra.io.sstable.format.SSTableReader.open(SSTableReader.java:477) ~[main/:na]
  at org.apache.cassandra.io.sstable.format.SSTableReader.open(SSTableReader.java:366) ~[main/:na]
  at org.apache.cassandra.io.sstable.format.SSTableReader$4.run(SSTableReader.java:525) ~[main/:na]
  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[na:1.8.0_252]
  at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_252]
  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_252]
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_252]
  at java.lang.Thread.run(Thread.java:748) [na:1.8.0_252]
{code}
 

Steps to reproduce: 
 # Start up a cluster of version 3.0 with 3 nodes and one seed
 # Run these commands to create keyspaces and tables:
 ## 
{code:java}
CREATE KEYSPACE ks WITH replication = { 'class':'SimpleStrategy', 'replication_factor':1}  AND DURABLE_WRITES = true";{code}

 ## 
{code:java}
CREATE KEYSPACE IF NOT EXISTS foo WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1'}{code}

 ## 
{code:java}
CREATE TABLE foo.bar (key text PRIMARY KEY, val int);{code}

 ## 
{code:java}
CREATE TABLE testTable (pk int PRIMARY KEY, val text)
{code}

 # Drop one of the keyspaces
 ## 
{code:java}
DROP KEYSPACE foo;
{code}

 # We stopped all the nodes, and started the C* nodes running C* compiled from 3.2 
 # After upgrading, we noticed some of the nodes encountered the RuntimeException (Unknown column kind during deserialization)

 

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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