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 4A88B200C52 for ; Mon, 10 Apr 2017 10:13:46 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 49298160B85; Mon, 10 Apr 2017 08:13:46 +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 8EF6D160B99 for ; Mon, 10 Apr 2017 10:13:45 +0200 (CEST) Received: (qmail 17279 invoked by uid 500); 10 Apr 2017 08:13: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 17267 invoked by uid 99); 10 Apr 2017 08:13: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; Mon, 10 Apr 2017 08:13: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 3E17B1A0145 for ; Mon, 10 Apr 2017 08:13: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-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id S0brg0UxjXNs for ; Mon, 10 Apr 2017 08:13:43 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 5908D5FC7C for ; Mon, 10 Apr 2017 08:13: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 DFB62E060F for ; Mon, 10 Apr 2017 08:13: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 89D4624065 for ; Mon, 10 Apr 2017 08:13:41 +0000 (UTC) Date: Mon, 10 Apr 2017 08:13:41 +0000 (UTC) From: "Viet Nguyen (JIRA)" To: dev@phoenix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (PHOENIX-3755) Duplicate rows MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 10 Apr 2017 08:13:46 -0000 [ https://issues.apache.org/jira/browse/PHOENIX-3755?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15962567#comment-15962567 ] Viet Nguyen commented on PHOENIX-3755: -------------------------------------- Hi D'Silva, I can provide some UPSERT queries but I think you can't reproduce this issue because you will need a large of concurrent requests To generate error. > Duplicate rows > -------------- > > Key: PHOENIX-3755 > URL: https://issues.apache.org/jira/browse/PHOENIX-3755 > Project: Phoenix > Issue Type: Bug > Affects Versions: 4.9.0 > Environment: Ubuntu 16.04 > HBase version 1.2.2 > Reporter: Viet Nguyen > > I have a major bug in apache phoenix version 4.9.0 as following: > A query create table: > CREATE TABLE ANALYTIC_ITEM_URL_V2 > ( > DOMAIN_ID INTEGER NOT NULL , > ITEM VARCHAR(40) NOT NULL , > URL VARCHAR(500), > CONSTRAINT PK PRIMARY KEY (DOMAIN_ID,ITEM ) > ) SALT_BUCKETS=4, COMPRESSION='SNAPPY', IMMUTABLE_ROWS=true; > This table has primary key with two field are domain_id and item. And when I executed the query: > "select * from ANALYTIC_ITEM_URL_V2 where domain_id=17 and item='435bbf4da995a9b618b3d00d536ba730'" > but I was quite surprised with the result as follow: > +------------+-----------------------------------+-----------------------------------------------------------------------------------------------------------------+ > | DOMAIN_ID | ITEM | URL | > +------------+-----------------------------------+-----------------------------------------------------------------------------------------------------------------+ > | 17 | 435bbf4da995a9b618b3d00d536ba730 | /nhom-nghi-si-thieu-so-bi-an-va-quyen-luc-khien-tong-thong-trump-tham-bai-truoc-obamacare-2017032819455659.chn | > | 17 | 435bbf4da995a9b618b3d00d536ba730 | /nhom-nghi-si-thieu-so-bi-an-va-quyen-luc-khien-tong-thong-trump-tham-bai-truoc-obamacare-2017032819455659.chn | > | 17 | 435bbf4da995a9b618b3d00d536ba730 | /nhom-nghi-si-thieu-so-bi-an-va-quyen-luc-khien-tong-thong-trump-tham-bai-truoc-obamacare-2017032819455659.chn | > +------------+-----------------------------------+-----------------------------------------------------------------------------------------------------------------+ > As you see, there are 3 rows with same primary key. I also executed two query: > - select count(*) from ANALYTIC_ITEM_URL_V2; in Phoenix > And > - count 'ANALYTIC_ITEM_URL_V2' in HBase > Result is there are about 20M record in HBase and about 35M record in Phoenix. So I think phoenix has a bug in metadata store. Can I help me explain this thing? -- This message was sent by Atlassian JIRA (v6.3.15#6346)