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

AssertionError in Tracing

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Low
    • Resolution: Fixed
    • Fix Version/s: 2.0.1
    • Component/s: None
    • Labels:
      None
    • Severity:
      Low
    • Since Version:

      Description

      Tracing in 2.0.0 can throw the following:

      ERROR [TracingStage:1] 2013-09-17 14:38:41,486 CassandraDaemon.java (line 185) Exception in thread Thread[TracingStage:1,5,main]
      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.tracing.Tracing.addParameterColumns(Tracing.java:101)
              at org.apache.cassandra.tracing.Tracing$2.runMayThrow(Tracing.java:210)
              at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)
              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:724)
      
      

      That's because addParamaterColumns will insert cell with names we don't know in advance, so we can't use ArrayBackedSortedColumns. Attaching patch to switch to TreeMapBackedSortedColumns.

        Attachments

          Activity

            People

            • Assignee:
              slebresne Sylvain Lebresne
              Reporter:
              slebresne Sylvain Lebresne
              Authors:
              Sylvain Lebresne
              Reviewers:
              Aleksey Yeschenko
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: