[
https://issues.apache.org/jira/browse/CASSANDRA-11706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15273881#comment-15273881
]
Alex Petrov commented on CASSANDRA-11706:
-----------------------------------------
I might be missing something, but, for instance
[here|https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/tracing/Tracing.java#L138-L141]
the {{customPayload}} is ignored as well. Is it intended?
In the same way,
[here|https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/tracing/Tracing.java#L156]
it is ignored, too, although I assume here it might be intended to be
overriden.
Could you give a bit more context?
> Tracing payload not passed through newSession(..)
> -------------------------------------------------
>
> Key: CASSANDRA-11706
> URL: https://issues.apache.org/jira/browse/CASSANDRA-11706
> Project: Cassandra
> Issue Type: Bug
> Reporter: mck
> Assignee: mck
> Priority: Minor
> Labels: tracing
> Fix For: 3.6
>
> Attachments: 11706-trunk.txt
>
>
> 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
> {noformat}
> public UUID newSession(UUID sessionId, Map<String,ByteBuffer>
> customPayload)
> {
> return newSession(sessionId, TraceType.QUERY, Collections.EMPTY_MAP);
> }{noformat}
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)