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

Tracing payload not passed through newSession(..)

    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

        1. trunk-11706.txt
          5 kB
          Michael Semb Wever

        Activity

          People

            mck Michael Semb Wever
            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: