You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "paul cannon (Commented) (JIRA)" <ji...@apache.org> on 2012/04/18 04:57:13 UTC

[jira] [Commented] (CASSANDRA-4163) ALTER TABLE command breaks the pipe

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

paul cannon commented on CASSANDRA-4163:
----------------------------------------

Sorry, should have been more specific. This is not cqlsh related; it causes an NPE in the Cassandra server:

{noformat}
ERROR [Thrift:2] 2012-04-17 15:13:28,048 CustomTThreadPoolServer.java (line 204) Error occurred during processing of message.
java.lang.NullPointerException
        at org.apache.cassandra.cql3.CFPropDefs.addAll(CFPropDefs.java:192)
        at org.apache.cassandra.cql3.statements.AlterTableStatement.<init>(AlterTableStatement.java:52)
        at org.apache.cassandra.cql3.CqlParser.alterTableStatement(CqlParser.java:2286)
        at org.apache.cassandra.cql3.CqlParser.cqlStatement(CqlParser.java:428)
        at org.apache.cassandra.cql3.CqlParser.query(CqlParser.java:183)
        at org.apache.cassandra.cql3.QueryProcessor.parseStatement(QueryProcessor.java:219)
        at org.apache.cassandra.cql3.QueryProcessor.getStatement(QueryProcessor.java:201)
        at org.apache.cassandra.cql3.QueryProcessor.process(QueryProcessor.java:121)
        at org.apache.cassandra.thrift.CassandraServer.execute_cql_query(CassandraServer.java:1237)
        at org.apache.cassandra.thrift.Cassandra$Processor$execute_cql_query.getResult(Cassandra.java:3542)
        at org.apache.cassandra.thrift.Cassandra$Processor$execute_cql_query.getResult(Cassandra.java:3530)
        at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:32)
        at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:34)
        at org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:186)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:680)
{noformat}
                
> ALTER TABLE command breaks the pipe
> -----------------------------------
>
>                 Key: CASSANDRA-4163
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4163
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.1.0
>         Environment: INFO 16:07:11,757 Cassandra version: 1.1.0-rc1-SNAPSHOT
> INFO 16:07:11,757 Thrift API version: 19.30.0
> INFO 16:07:11,758 CQL supported versions: 2.0.0,3.0.0-beta1 (default: 2.0.0)
>            Reporter: Kristine Hahn
>            Assignee: paul cannon
>              Labels: cql
>             Fix For: 1.1.0
>
>
> To reproduce the problem:
> ./cqlsh --cql3
> Connected to Test Cluster at localhost:9160.
> [cqlsh 2.2.0 | Cassandra 1.1.0-rc1-SNAPSHOT | CQL spec 3.0.0 | Thrift protocol 19.30.0]
> Use HELP for help.
> cqlsh> CREATE KEYSPACE test34 WITH strategy_class = 'org.apache.cassandra.locator.SimpleStrategy' AND strategy_options:replication_factor='1';
> cqlsh> USE test34;
> cqlsh:test34> CREATE TABLE users (
>           ... password varchar,
>           ... gender varchar,
>           ... session_token varchar,
>           ... state varchar,
>           ... birth_year bigint,
>           ... pk varchar,
>           ... PRIMARY KEY (pk)
>           ... );
> cqlsh:test34> ALTER TABLE users ADD coupon_code varchar;
> TSocket read 0 bytes

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira