Return-Path: X-Original-To: apmail-phoenix-dev-archive@minotaur.apache.org Delivered-To: apmail-phoenix-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DA112175C8 for ; Thu, 15 Jan 2015 07:04:55 +0000 (UTC) Received: (qmail 67709 invoked by uid 500); 15 Jan 2015 07:04:55 -0000 Delivered-To: apmail-phoenix-dev-archive@phoenix.apache.org Received: (qmail 67646 invoked by uid 500); 15 Jan 2015 07:04:55 -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 67556 invoked by uid 99); 15 Jan 2015 07:04:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Jan 2015 07:04:55 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 15 Jan 2015 07:04:54 +0000 Received: (qmail 62774 invoked by uid 99); 15 Jan 2015 07:04:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Jan 2015 07:04:34 +0000 Date: Thu, 15 Jan 2015 07:04:34 +0000 (UTC) From: "ramkrishna.s.vasudevan (JIRA)" To: dev@phoenix.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (PHOENIX-1584) Ensure stats are correct if simultaneous split and merge MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/PHOENIX-1584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14278360#comment-14278360 ] ramkrishna.s.vasudevan commented on PHOENIX-1584: ------------------------------------------------- When the stats is calculated during compaction it is an absolute measure. But during splits we have an approximation while calculating the percentage. That leads to this variation. > Ensure stats are correct if simultaneous split and merge > -------------------------------------------------------- > > Key: PHOENIX-1584 > URL: https://issues.apache.org/jira/browse/PHOENIX-1584 > Project: Phoenix > Issue Type: Sub-task > Reporter: James Taylor > Assignee: ramkrishna.s.vasudevan > > During splits, we update the rowCount and byteCount via StatisticsWriter.splitStats() and at the same time compaction also updates the stats. So we are not able to get a consistent result for the rowCount and byteCount under these conditions. So for now these are not asserted when doing a select from the STATS table in the statistics unit tests. However on the client side it is asserted. All tests passes with this. -- This message was sent by Atlassian JIRA (v6.3.4#6332)