[ 
https://issues.apache.org/jira/browse/CASSANDRA-15499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17016940#comment-17016940
 ] 

Aleksey Yeschenko commented on CASSANDRA-15499:
-----------------------------------------------

It would help if you showed the code from your other upcoming patch. The 
general idea is/was that for out messages you should be using a variant of 
{{Message#out*}} methods, which all add the header for you.

 

[~dcapwell] In that scenario (forwardTo with mixed ids), the original tracing 
headers are preserved when the builder copied params field from the original 
message which has them, so there is no bug currently.

> Internode message builder does not add trace header
> ---------------------------------------------------
>
>                 Key: CASSANDRA-15499
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-15499
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Messaging/Internode
>            Reporter: Yifan Cai
>            Assignee: Yifan Cai
>            Priority: Normal
>              Labels: pull-request-available
>             Fix For: 4.x
>
>
> The messages built with the {{Builder}} 
> ({{org.apache.cassandra.net.Message.Builder}}) do not have the trace header 
> when tracing is enabled. 
> Consequently, no tracing session gets propagated to other nodes, and the 
> tracing function is broken. 
> The set of static {{out*}} methods provided (to create an out-bounding 
> message) in Message do not have the issue. They can properly add the trace 
> header when necessary. 
> To be clear, only the {{Builder}} missed adding the tracing header and it 
> should be fixed to be consistent with the {{out*}} methods.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to