添加的列不会排序为最后一列

时间:2013-04-09 12:15:20

标签: cassandra

我刚从Cassandra 1.1.7升级到1.2.3,我现在在output.log中看到了很多以下错误,无法在网上找到关于它的内容:

ERROR 11:56:01,317线程中的异常线程[ReadStage:7236,5,main] java.lang.AssertionError:添加的列不排序为最后一列     at org.apache.cassandra.db.ArrayBackedSortedColumns.addColumn(ArrayBackedSortedColumns.java:131)     在org.apache.cassandra.db.AbstractColumnContainer.addColumn(AbstractColumnContainer.java:109)     在org.apache.cassandra.db.AbstractColumnContainer.addColumn(AbstractColumnContainer.java:104)     在org.apache.cassandra.db.filter.SliceQueryFilter.collectReducedColumns(SliceQueryFilter.java:171)     在org.apache.cassandra.db.filter.QueryFilter.collat​​eColumns(QueryFilter.java:136)     在org.apache.cassandra.db.filter.QueryFilter.collat​​eOnDiskAtom(QueryFilter.java:84)     在org.apache.cassandra.db.Collat​​ionController.collectAllData(Collat​​ionController.java:294)     在org.apache.cassandra.db.Collat​​ionController.getTopLevelColumns(Collat​​ionController.java:65)     在org.apache.cassandra.db.ColumnFamilyStore.getTopLevelColumns(ColumnFamilyStore.java:1363)     在org.apache.cassandra.db.ColumnFamilyStore.getColumnFamily(ColumnFamilyStore.java:1220)     在org.apache.cassandra.db.ColumnFamilyStore.getColumnFamily(ColumnFamilyStore.java:1132)     在org.apache.cassandra.db.Table.getRow(Table.java:348)     在org.apache.cassandra.db.SliceFromReadCommand.getRow(SliceFromReadCommand.java:70)     在org.apache.cassandra.service.StorageProxy $ LocalReadRunnable.runMayThrow(StorageProxy.java:1052)     在org.apache.cassandra.service.StorageProxy $ DroppableRunnable.run(StorageProxy.java:1578)     at java.util.concurrent.ThreadPoolExecutor $ Worker.runTask(ThreadPoolExecutor.java:886)     at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:908)     在java.lang.Thread.run(Thread.java:662)

我不知道Java并且我正在努力确定究竟是哪个查询导致这种情况,有没有办法将其追溯到特定查询?

任何帮助表示感谢。

萨姆

1 个答案:

答案 0 :(得分:1)

您可以启用概率跟踪(http://www.datastax.com/dev/blog/advanced-request-tracing-in-cassandra-1-2)并检查与此异常匹配的活动条目。不幸的是,您需要https://issues.apache.org/jira/browse/CASSANDRA-5447中的补丁来包含异常。