Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-4410

BulkOutputFormat and CompositeColumn results in java.lang.AssertionError: Added column does not sort as the last column

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Low
    • Resolution: Cannot Reproduce
    • Fix Version/s: None
    • Component/s: None
    • Environment:

      hadoop 0.20
      cassandra 1.1.1
      cql 3.0.0

    • Severity:
      Low

      Description

      Using the org.apache.cassandra.hadoop.BulkOutputFormat.class with CompositeColumns results in the following AsertionError during a Select query with WHERE ID='id' or using an ID in any way in the where clause.

      ERROR [ReadStage:34] 2012-07-04 14:33:27,376 AbstractCassandraDaemon.java (line 134) Exception in thread Thread[ReadStage:34,5,main]
      java.lang.AssertionError: Added column does not sort as the last column
      at org.apache.cassandra.db.ArrayBackedSortedColumns.addColumn(ArrayBackedSortedColumns.java:130)
      at org.apache.cassandra.db.AbstractColumnContainer.addColumn(AbstractColumnContainer.java:107)
      at org.apache.cassandra.db.AbstractColumnContainer.addColumn(AbstractColumnContainer.java:102)
      at org.apache.cassandra.db.filter.SliceQueryFilter.collectReducedColumns(SliceQueryFilter.java:141)
      at org.apache.cassandra.db.filter.QueryFilter.collateColumns(QueryFilter.java:139)
      at org.apache.cassandra.db.CollationController.collectAllData(CollationController.java:283)
      at org.apache.cassandra.db.CollationController.getTopLevelColumns(CollationController.java:63)
      at org.apache.cassandra.db.ColumnFamilyStore.getTopLevelColumns(ColumnFamilyStore.java:1321)
      at org.apache.cassandra.db.ColumnFamilyStore.getColumnFamily(ColumnFamilyStore.java:1183)
      at org.apache.cassandra.db.ColumnFamilyStore.getColumnFamily(ColumnFamilyStore.java:1118)
      at org.apache.cassandra.db.Table.getRow(Table.java:374)
      at org.apache.cassandra.db.SliceFromReadCommand.getRow(SliceFromReadCommand.java:69)
      at org.apache.cassandra.service.StorageProxy$LocalReadRunnable.runMayThrow(StorageProxy.java:816)
      at org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:1250)
      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)

        Attachments

        1. CompositeColumnsBulkOutputDriver.java
          2 kB
          Henning Kropp
        2. CompositeColumnsBulkOutputMapper.java
          0.8 kB
          Henning Kropp
        3. CompositeColumnsBulkOutputReducer.java
          2 kB
          Henning Kropp
        4. input.csv
          0.1 kB
          Henning Kropp
        5. keyspace.cli
          0.2 kB
          Henning Kropp
        6. schema.cql
          0.1 kB
          Henning Kropp
        7. pom.xml
          3 kB
          Henning Kropp
        8. schema_hector.cql
          0.1 kB
          Henning Kropp
        9. HectorInsertTest.java
          3 kB
          Henning Kropp

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              hkropp Henning Kropp
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: