Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 45B62200BA8 for ; Mon, 24 Oct 2016 17:16:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4465C160B00; Mon, 24 Oct 2016 15:16:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 90F05160AE1 for ; Mon, 24 Oct 2016 17:16:04 +0200 (CEST) Received: (qmail 61903 invoked by uid 500); 24 Oct 2016 15:15:58 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 61871 invoked by uid 99); 24 Oct 2016 15:15:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Oct 2016 15:15:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 7E5642C0D55 for ; Mon, 24 Oct 2016 15:15:58 +0000 (UTC) Date: Mon, 24 Oct 2016 15:15:58 +0000 (UTC) From: =?utf-8?Q?Hannu_Kr=C3=B6ger_=28JIRA=29?= To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-12835) Tracing payload not passed from QueryMessage to tracing session MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 24 Oct 2016 15:16:05 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-12835?page=3Dcom.atl= assian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hannu Kr=C3=B6ger updated CASSANDRA-12835: ------------------------------------- Description:=20 Caused by CASSANDRA-10392. Related to CASSANDRA-11706. When querying using CQL statements (not prepared) the message type is Query= Message and the code in https://github.com/apache/cassandra/blob/trunk/src/= java/org/apache/cassandra/transport/messages/QueryMessage.java#L101 is as f= ollows: ``` if (state.traceNextQuery()) { state.createTracingSession(); ImmutableMap.Builder builder =3D ImmutableM= ap.builder(); ``` `state.createTracingSession();` should probably be `state.createTracingSess= ion(getCustomPayload());`. At least that fixes the problem for me. This is not marked as `minor` as the CASSANDRA-11706 was because this canno= t be fixed by the tracing plugin. > Tracing payload not passed from QueryMessage to tracing session > --------------------------------------------------------------- > > Key: CASSANDRA-12835 > URL: https://issues.apache.org/jira/browse/CASSANDRA-1283= 5 > Project: Cassandra > Issue Type: Bug > Reporter: Hannu Kr=C3=B6ger > Priority: Critical > Labels: tracing > > Caused by CASSANDRA-10392. > Related to CASSANDRA-11706. > When querying using CQL statements (not prepared) the message type is Que= ryMessage and the code in https://github.com/apache/cassandra/blob/trunk/sr= c/java/org/apache/cassandra/transport/messages/QueryMessage.java#L101 is as= follows: > ``` > if (state.traceNextQuery()) > { > state.createTracingSession(); > ImmutableMap.Builder builder =3D Immutabl= eMap.builder(); > ``` > `state.createTracingSession();` should probably be `state.createTracingSe= ssion(getCustomPayload());`. At least that fixes the problem for me. > This is not marked as `minor` as the CASSANDRA-11706 was because this can= not be fixed by the tracing plugin. -- This message was sent by Atlassian JIRA (v6.3.4#6332)