[ https://issues.apache.org/jira/browse/CASSANDRA-8144?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aleksey Yeschenko updated CASSANDRA-8144: ----------------------------------------- Attachment: (was: 8144.txt) > Creating CQL2 tables fails in C* 2.1 > ------------------------------------ > > Key: CASSANDRA-8144 > URL: https://issues.apache.org/jira/browse/CASSANDRA-8144 > Project: Cassandra > Issue Type: Bug > Reporter: Sam Tunnicliffe > Assignee: Aleksey Yeschenko > Fix For: 2.1.2 > > Attachments: repro.py > > > Although cql2 has been deprecated and removed from cqlsh, the functionality > is still accessible using thrift. However, it seems that creation of new > tables via cql2 is broken in 2.1. > {code} > CREATE KEYSPACE test_ks WITH strategy_class='SimpleStrategy' AND > replication_factor = '1'; > CREATE TABLE test_cf (id text PRIMARY KEY, value text, test text); > {code} > fails with the following stacktrace on the server: > {code} > ERROR [MigrationStage:1] 2014-10-20 13:53:29,506 CassandraDaemon.java:153 - > Exception in thread Thread[MigrationStage:1,5,main] > java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 > at java.util.ArrayList.rangeCheck(ArrayList.java:635) ~[na:1.7.0_51] > at java.util.ArrayList.set(ArrayList.java:426) ~[na:1.7.0_51] > at org.apache.cassandra.config.CFMetaData.rebuild(CFMetaData.java:2072) > ~[main/:na] > at > org.apache.cassandra.config.CFMetaData.fromSchemaNoTriggers(CFMetaData.java:1842) > ~[main/:na] > at > org.apache.cassandra.config.CFMetaData.fromSchema(CFMetaData.java:1882) > ~[main/:na] > at > org.apache.cassandra.config.KSMetaData.deserializeColumnFamilies(KSMetaData.java:320) > ~[main/:na] > at > org.apache.cassandra.db.DefsTables.mergeColumnFamilies(DefsTables.java:279) > ~[main/:na] > at > org.apache.cassandra.db.DefsTables.mergeSchemaInternal(DefsTables.java:193) > ~[main/:na] > at org.apache.cassandra.db.DefsTables.mergeSchema(DefsTables.java:165) > ~[main/:na] > at > org.apache.cassandra.service.MigrationManager$2.runMayThrow(MigrationManager.java:393) > ~[main/:na] > at > org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28) > ~[main/:na] > at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) > ~[na:1.7.0_51] > at java.util.concurrent.FutureTask.run(FutureTask.java:262) ~[na:1.7.0_51] > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > ~[na:1.7.0_51] > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > [na:1.7.0_51] > at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51] > ERROR [Thrift:1] 2014-10-20 13:53:29,506 CustomTThreadPoolServer.java:219 - > Error occurred during processing of message. > java.lang.RuntimeException: java.util.concurrent.ExecutionException: > java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 > at > org.apache.cassandra.utils.FBUtilities.waitOnFuture(FBUtilities.java:397) > ~[main/:na] > at > org.apache.cassandra.service.MigrationManager.announce(MigrationManager.java:374) > ~[main/:na] > at > org.apache.cassandra.service.MigrationManager.announceNewColumnFamily(MigrationManager.java:249) > ~[main/:na] > at > org.apache.cassandra.service.MigrationManager.announceNewColumnFamily(MigrationManager.java:235) > ~[main/:na] > at > org.apache.cassandra.cql.QueryProcessor.processStatement(QueryProcessor.java:662) > ~[main/:na] > at > org.apache.cassandra.cql.QueryProcessor.process(QueryProcessor.java:802) > ~[main/:na] > at > org.apache.cassandra.thrift.CassandraServer.execute_cql_query(CassandraServer.java:1941) > ~[main/:na] > at > org.apache.cassandra.thrift.Cassandra$Processor$execute_cql_query.getResult(Cassandra.java:4558) > ~[thrift/:na] > at > org.apache.cassandra.thrift.Cassandra$Processor$execute_cql_query.getResult(Cassandra.java:4542) > ~[thrift/:na] > at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39) > ~[libthrift-0.9.1.jar:0.9.1] > at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39) > ~[libthrift-0.9.1.jar:0.9.1] > at > org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:201) > ~[main/:na] > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > [na:1.7.0_51] > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > [na:1.7.0_51] > at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51] > Caused by: java.util.concurrent.ExecutionException: > java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 > at java.util.concurrent.FutureTask.report(FutureTask.java:122) > ~[na:1.7.0_51] > at java.util.concurrent.FutureTask.get(FutureTask.java:188) ~[na:1.7.0_51] > at > org.apache.cassandra.utils.FBUtilities.waitOnFuture(FBUtilities.java:393) > ~[main/:na] > ... 14 common frames omitted > Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 > at java.util.ArrayList.rangeCheck(ArrayList.java:635) ~[na:1.7.0_51] > at java.util.ArrayList.set(ArrayList.java:426) ~[na:1.7.0_51] > at org.apache.cassandra.config.CFMetaData.rebuild(CFMetaData.java:2072) > ~[main/:na] > at > org.apache.cassandra.config.CFMetaData.fromSchemaNoTriggers(CFMetaData.java:1842) > ~[main/:na] > at > org.apache.cassandra.config.CFMetaData.fromSchema(CFMetaData.java:1882) > ~[main/:na] > at > org.apache.cassandra.config.KSMetaData.deserializeColumnFamilies(KSMetaData.java:320) > ~[main/:na] > at > org.apache.cassandra.db.DefsTables.mergeColumnFamilies(DefsTables.java:279) > ~[main/:na] > at > org.apache.cassandra.db.DefsTables.mergeSchemaInternal(DefsTables.java:193) > ~[main/:na] > at org.apache.cassandra.db.DefsTables.mergeSchema(DefsTables.java:165) > ~[main/:na] > at > org.apache.cassandra.service.MigrationManager$2.runMayThrow(MigrationManager.java:393) > ~[main/:na] > at > org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28) > ~[main/:na] > at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) > ~[na:1.7.0_51] > at java.util.concurrent.FutureTask.run(FutureTask.java:262) ~[na:1.7.0_51] > ... 3 common frames omitted > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)