cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brandon Williams (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-3612) CQL inserting blank key.
Date Sun, 11 Dec 2011 19:02:39 GMT

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

Brandon Williams commented on CASSANDRA-3612:
---------------------------------------------

Adding the exception from pastebin for posterity.

{noformat}

s.  Time: 292ms.
ERROR 22:39:02,137 Fatal exception in thread Thread[MutationStage:1,5,main]
java.lang.AssertionError
	at org.apache.cassandra.db.ColumnFamilyStore.markReferenced(ColumnFamilyStore.java:1236)
	at org.apache.cassandra.db.CollationController.collectTimeOrderedData(CollationController.java:83)
	at org.apache.cassandra.db.CollationController.getTopLevelColumns(CollationController.java:62)
	at org.apache.cassandra.db.ColumnFamilyStore.getTopLevelColumns(ColumnFamilyStore.java:1275)
	at org.apache.cassandra.db.ColumnFamilyStore.getColumnFamily(ColumnFamilyStore.java:1161)
	at org.apache.cassandra.db.ColumnFamilyStore.getColumnFamily(ColumnFamilyStore.java:1123)
	at org.apache.cassandra.db.Table.readCurrentIndexedColumns(Table.java:504)
	at org.apache.cassandra.db.Table.apply(Table.java:441)
	at org.apache.cassandra.db.RowMutation.apply(RowMutation.java:256)
	at org.apache.cassandra.service.StorageProxy$6.runMayThrow(StorageProxy.java:440)
	at org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:1258)
	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:662)
ERROR 22:42:02,786 Fatal exception in thread Thread[MutationStage:34,5,main]
java.lang.AssertionError
	at org.apache.cassandra.db.ColumnFamilyStore.markReferenced(ColumnFamilyStore.java:1236)
	at org.apache.cassandra.db.CollationController.collectTimeOrderedData(CollationController.java:83)
	at org.apache.cassandra.db.CollationController.getTopLevelColumns(CollationController.java:62)
	at org.apache.cassandra.db.ColumnFamilyStore.getTopLevelColumns(ColumnFamilyStore.java:1275)
	at org.apache.cassandra.db.ColumnFamilyStore.getColumnFamily(ColumnFamilyStore.java:1161)
	at org.apache.cassandra.db.ColumnFamilyStore.getColumnFamily(ColumnFamilyStore.java:1123)
	at org.apache.cassandra.db.Table.readCurrentIndexedColumns(Table.java:504)
	at org.apache.cassandra.db.Table.apply(Table.java:441)
	at org.apache.cassandra.db.RowMutation.apply(RowMutation.java:256)
	at org.apache.cassandra.service.StorageProxy$6.runMayThrow(StorageProxy.java:440)
	at org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:1258)
	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:662)
ERROR 22:45:40,752 Fatal exception in thread Thread[MutationStage:36,5,main]
java.lang.AssertionError
	at org.apache.cassandra.db.ColumnFamilyStore.markReferenced(ColumnFamilyStore.java:1236)
	at org.apache.cassandra.db.CollationController.collectTimeOrderedData(CollationController.java:83)
	at org.apache.cassandra.db.CollationController.getTopLevelColumns(CollationController.java:62)
	at org.apache.cassandra.db.ColumnFamilyStore.getTopLevelColumns(ColumnFamilyStore.java:1275)
	at org.apache.cassandra.db.ColumnFamilyStore.getColumnFamily(ColumnFamilyStore.java:1161)
	at org.apache.cassandra.db.ColumnFamilyStore.getColumnFamily(ColumnFamilyStore.java:1123)
	at org.apache.cassandra.db.Table.readCurrentIndexedColumns(Table.java:504)
	at org.apache.cassandra.db.Table.apply(Table.java:441)
	at org.apache.cassandra.db.RowMutation.apply(RowMutation.java:256)
	at org.apache.cassandra.service.StorageProxy$6.runMayThrow(StorageProxy.java:440)
	at org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:1258)
	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:662)
ERROR 22:46:02,674 Fatal exception in thread Thread[MutationStage:37,5,main]
java.lang.AssertionError
	at org.apache.cassandra.db.ColumnFamilyStore.markReferenced(ColumnFamilyStore.java:1236)
	at org.apache.cassandra.db.CollationController.collectTimeOrderedData(CollationController.java:83)
	at org.apache.cassandra.db.CollationController.getTopLevelColumns(CollationController.java:62)
	at org.apache.cassandra.db.ColumnFamilyStore.getTopLevelColumns(ColumnFamilyStore.java:1275)
	at org.apache.cassandra.db.ColumnFamilyStore.getColumnFamily(ColumnFamilyStore.java:1161)
	at org.apache.cassandra.db.ColumnFamilyStore.getColumnFamily(ColumnFamilyStore.java:1123)
	at org.apache.cassandra.db.Table.readCurrentIndexedColumns(Table.java:504)
	at org.apache.cassandra.db.Table.apply(Table.java:441)
	at org.apache.cassandra.db.RowMutation.apply(RowMutation.java:256)
	at org.apache.cassandra.service.StorageProxy$6.runMayThrow(StorageProxy.java:440)
	at org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:1258)
	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:662)
{noformat}
                
> CQL inserting blank key.
> ------------------------
>
>                 Key: CASSANDRA-3612
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3612
>             Project: Cassandra
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 1.0.5
>         Environment: Linux ubuntu 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25
UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
>            Reporter: samal
>            Priority: Trivial
>              Labels: cql
>
> One of our application bug inserted blank key into cluster causing assertion error on
key. After checking the root cause, I found it is the bug with CQL and reproducible. Client
cassandra-node and cqlsh-1.0.6.
> Blank key only work when one column provided.
>  
> {}
> cqlsh> insert into login (KEY,email)values('','');
> cqlsh> select * from login;
> u'' | u'email',u'' 
> cqlsh> insert into login (KEY,email,verified)values('','','');
> Request did not complete within rpc_timeout.
> cqlsh> insert into login (KEY,verified)values('','');
> Request did not complete within rpc_timeout.
> cqlsh> insert into login (KEY,email)values('','');
> cqlsh> 
> cqlsh> select * from login;
> u'' | u'email',u'' | u'uid',None
> cqlsh> select * from login;
> u'' | u'email',u'' | u'uid',None
> cqlsh> select * from login;
> u'' | u'email',u'' | u'uid',None
> cqlsh> 
> cqlsh> select * from login;
> u'' | u'email',u'' | u'uid',None
> u'samalgorai@gmail.com' | u'email',u'samalgorai@gmail.com' | u'password',u'388ad1c312a488ee9e12998fe097f2258fa8d5ee'
| u'uid',UUID('05ea41dc-241f-11e1-8521-3da59237b189') | u'verified',u'0'
> cqlsh> quit;
> {/}
> http://pastebin.com/HJn5fHhH

--
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

        

Mime
View raw message