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

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Cannot Reproduce
    • None
    • None
    • hadoop 0.20
      cassandra 1.1.1
      cql 3.0.0

    • 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. schema.cql
          0.1 kB
          Henning Kropp
        2. schema_hector.cql
          0.1 kB
          Henning Kropp
        3. pom.xml
          3 kB
          Henning Kropp
        4. keyspace.cli
          0.2 kB
          Henning Kropp
        5. input.csv
          0.1 kB
          Henning Kropp
        6. HectorInsertTest.java
          3 kB
          Henning Kropp
        7. CompositeColumnsBulkOutputReducer.java
          2 kB
          Henning Kropp
        8. CompositeColumnsBulkOutputMapper.java
          0.8 kB
          Henning Kropp
        9. CompositeColumnsBulkOutputDriver.java
          2 kB
          Henning Kropp

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: