cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aleksey Yeschenko (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CASSANDRA-5446) Invalid delete statement causes NPE in CQL2
Date Tue, 09 Apr 2013 18:42:17 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-5446?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Aleksey Yeschenko resolved CASSANDRA-5446.
------------------------------------------

    Resolution: Won't Fix
    
> Invalid delete statement causes NPE in CQL2
> -------------------------------------------
>
>                 Key: CASSANDRA-5446
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5446
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 1.1.10
>            Reporter: Jeremiah Jordan
>            Priority: Minor
>
> A bad delete, (no WHERE), causes an NPE in CQL2
> {noformat}
> cqlsh> use cfs_archive;
> cqlsh:cfs_archive> select * from rules;
> cqlsh:cfs_archive> delete from rules;
> TSocket read 0 bytes
> {noformat}
> system.log
> {noformat}
> ERROR [Thrift:6] 2013-04-09 13:18:29,167 CustomTThreadPoolServer.java (line 210) Error
occurred during processing of message.
> java.lang.NullPointerException
> 	at org.apache.cassandra.cql.CqlParser.deleteStatement(CqlParser.java:2034)
> 	at org.apache.cassandra.cql.CqlParser.query(CqlParser.java:303)
> 	at com.datastax.bdp.server.Cql2Handler.parseQuery(Cql2Handler.java:298)
> 	at com.datastax.bdp.server.Cql2Handler.<init>(Cql2Handler.java:71)
> 	at com.datastax.bdp.server.DseServer.makeCqlHandlerForStatement(DseServer.java:934)
> 	at com.datastax.bdp.server.DseServer.execute_cql_query(DseServer.java:893)
> 	at org.apache.cassandra.thrift.Cassandra$Processor$execute_cql_query.getResult(Cassandra.java:3637)
> 	at org.apache.cassandra.thrift.Cassandra$Processor$execute_cql_query.getResult(Cassandra.java:3625)
> 	at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:32)
> 	at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:34)
> 	at com.datastax.bdp.transport.server.ClientSocketAwareProcessor.process(ClientSocketAwareProcessor.java:25)
> 	at org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:192)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
> 	at java.lang.Thread.run(Thread.java:680)
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message