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

AssertionError in Tracing

Agile BoardAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 2.0.1
    • None
    • None
    • Low

    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            slebresne Sylvain Lebresne Assign to me
            slebresne Sylvain Lebresne
            Sylvain Lebresne
            Aleksey Yeschenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment