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 0C1C7200C48 for ; Thu, 6 Apr 2017 20:04:52 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0A950160B91; Thu, 6 Apr 2017 18:04:52 +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 52B1C160B81 for ; Thu, 6 Apr 2017 20:04:51 +0200 (CEST) Received: (qmail 15469 invoked by uid 500); 6 Apr 2017 18:04:44 -0000 Mailing-List: contact dev-help@phoenix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@phoenix.apache.org Delivered-To: mailing list dev@phoenix.apache.org Received: (qmail 15180 invoked by uid 99); 6 Apr 2017 18:04:44 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Apr 2017 18:04:44 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 3C1A81A02E2 for ; Thu, 6 Apr 2017 18:04:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id dxs-ZmT7WFW3 for ; Thu, 6 Apr 2017 18:04:43 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 878785F2FE for ; Thu, 6 Apr 2017 18:04:42 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id DCB61E04AB for ; Thu, 6 Apr 2017 18:04:41 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 9387A21D63 for ; Thu, 6 Apr 2017 18:04:41 +0000 (UTC) Date: Thu, 6 Apr 2017 18:04:41 +0000 (UTC) From: "James Taylor (JIRA)" To: dev@phoenix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (PHOENIX-3767) Prevent spurious tracing spans from Hadoop being written in Phoenix Trace tables MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 06 Apr 2017 18:04:52 -0000 [ https://issues.apache.org/jira/browse/PHOENIX-3767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15959458#comment-15959458 ] James Taylor commented on PHOENIX-3767: --------------------------------------- Thanks for the patch, [~karanmehta93]. Your workaround to filter out metrics with a trace ID of 0 is a good one. I believe the relevant code change for that is here in the private Metric class within TraceMetricSource? {code} + if (span.getTraceId() != 0 && spanQueue.offer(span) ) + LOG.info("Span buffered to queue " + span.toJson()); + else + LOG.info("Span NOT buffered due to overflow in queue " + span.toJson()); {code} Would you mind attaching only the diff on top of your other patch for PHOENIX-3752 (and note that this depends on that one)? Also, please resolve PHOENIX-3062 as "Will Not Fix" as it seems it's eclipsed by your other patch. [~samarthjain] - would you mind reviewing/committing this one and PHOENIX-3752? > Prevent spurious tracing spans from Hadoop being written in Phoenix Trace tables > -------------------------------------------------------------------------------- > > Key: PHOENIX-3767 > URL: https://issues.apache.org/jira/browse/PHOENIX-3767 > Project: Phoenix > Issue Type: Bug > Reporter: Karan Mehta > Assignee: Karan Mehta > Attachments: PHOENIX-3767.001.patch > > > PHOENIX-3752 is the JIRA to remove Hadoop Metrics-2 system from the Phoenix Framework, whose task is to deliver the received HTrace spans to the phoenix table. When replacing this system with a simple one as discussed on this JIRA, one of the current test {{testClientServerIndexingTracing()}} triggers a bug in Hadoop (HDFS-11583), which causes spurious {{writeTo}} spans being generated from {{DataStreamer}} class. > Since Phoenix implements its {{SpanReceiver}} to receive the HTrace spans, all these spans are redirected over here, which eventually get persisted into Phoenix tables with the system developed in PHOENIX-3752. The information is useless and might use up unnecessary space. > This JIRA is to add a patch to ignore those spans and prevent them from being written to Phoenix tables. -- This message was sent by Atlassian JIRA (v6.3.15#6346)