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

Tracing payload not passed through newSession(..)

Log workAgile BoardRank to TopRank to BottomAttach 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
    • 3.10
    • None
    • Low

    Description

      Caused by CASSANDRA-10392

      There's a small bug in https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/tracing/Tracing.java#L153

          public UUID newSession(UUID sessionId, Map<String,ByteBuffer> customPayload)
          {
              return newSession(sessionId, TraceType.QUERY, Collections.EMPTY_MAP);
          }

      in that it passes on an EMPTY_MAP instead of the customPayload.

      I've marked this as "minor" as custom tracing plugins can easily enough workaround it by also overriding the newSession(UUID sessionId, Map<String,ByteBuffer> customPayload) method.

      Attachments

        Activity

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

          People

            mck Michael Semb Wever Assign to me
            mck Michael Semb Wever
            Michael Semb Wever
            Alex Petrov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment