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

Added column does not sort as the last column

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Duplicate
    • Fix Version/s: 2.0.13
    • Component/s: None
    • Labels:
      None
    • Environment:
    • Severity:
      Normal
    • Since Version:

      Description

      This appears to be a stack trace distinct from that in CASSANDRA-5856.

      java.lang.AssertionError: Added column does not sort as the last column
              at org.apache.cassandra.db.ArrayBackedSortedColumns.addColumn(ArrayBackedSortedColumns.java:115)
              at org.apache.cassandra.db.ColumnFamily.addColumn(ColumnFamily.java:116)
              at org.apache.cassandra.service.pager.AbstractQueryPager.discardHead(AbstractQueryPager.java:319)
              at org.apache.cassandra.service.pager.AbstractQueryPager.discardLast(AbstractQueryPager.java:301)
              at org.apache.cassandra.service.pager.AbstractQueryPager.discardFirst(AbstractQueryPager.java:219)
              at org.apache.cassandra.service.pager.AbstractQueryPager.discardFirst(AbstractQueryPager.java:202)
              at org.apache.cassandra.service.pager.AbstractQueryPager.fetchPage(AbstractQueryPager.java:124)
              at org.apache.cassandra.service.pager.SliceQueryPager.fetchPage(SliceQueryPager.java:35)
              at org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:236)
              at org.apache.cassandra.cql3.statements.SelectStatement.execute(SelectStatement.java:61)
              at org.apache.cassandra.cql3.QueryProcessor.processStatement(QueryProcessor.java:158)
              at org.apache.cassandra.cql3.QueryProcessor.process(QueryProcessor.java:175)
              at org.apache.cassandra.transport.messages.QueryMessage.execute(QueryMessage.java:119)
              at org.apache.cassandra.transport.Message$Dispatcher.messageReceived(Message.java:304)
              at org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.doRun(ChannelUpstreamEventRunnable.java:43)
              at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:67)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
              at java.lang.Thread.run(Thread.java:744)
      

      The underlying table is an append-only event log and is usually being queried in descending ts order:

      CREATE TABLE ledger (
        id blob,
        ts timeuuid,
        data text,
        json_key text,
        type text,
        PRIMARY KEY ((id), ts)
      ) WITH
        bloom_filter_fp_chance=0.010000 AND
        caching='KEYS_ONLY' AND
        comment='' AND
        dclocal_read_repair_chance=0.100000 AND
        gc_grace_seconds=864000 AND
        index_interval=128 AND
        read_repair_chance=0.000000 AND
        replicate_on_write='true' AND
        populate_io_cache_on_flush='false' AND
        default_time_to_live=0 AND
        speculative_retry='99.0PERCENTILE' AND
        memtable_flush_period_in_ms=0 AND
        compaction={'class': 'SizeTieredCompactionStrategy'} AND
        compression={'sstable_compression': 'LZ4Compressor'};
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                BobV Bob Vawter
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: