cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yifan Cai (Jira)" <>
Subject [jira] [Commented] (CASSANDRA-15499) Internode message builder does not add trace header
Date Thu, 16 Jan 2020 16:07:00 GMT


Yifan Cai commented on CASSANDRA-15499:

The {{Message#out*}} methods are good and it was stated in the ticket description. However,
those 2 message creation approaches are inconsistent. So this patch aims to close the gap.

What is the desired usage of using the {{Message.Builder}}? I feel having 2 implementations
of message creation can have problem in maintaining the code. To me, using {{Message.Builder}}
gives more flexibility. 

bq. It would help if you showed the code from your other upcoming patch.
Attaching the link to the [patch|]
to see it helps to give more context. *Discussion about the attached patch does not fit the
topic of this ticket.* The patch involves a lot of changes. Please search for "Message.Builder"
to see the usage of it. In short, builder is used to adjust the message expiration time since
the query is allowed accept custom timeout value. 

> Internode message builder does not add trace header
> ---------------------------------------------------
>                 Key: CASSANDRA-15499
>                 URL:
>             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}} ({{}})
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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message