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 BC039200CB1 for ; Fri, 9 Jun 2017 20:20:24 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BABBF160BCA; Fri, 9 Jun 2017 18:20:24 +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 0C15D160BB6 for ; Fri, 9 Jun 2017 20:20:23 +0200 (CEST) Received: (qmail 98957 invoked by uid 500); 9 Jun 2017 18:20:23 -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 98894 invoked by uid 99); 9 Jun 2017 18:20:23 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Jun 2017 18:20:23 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id A875C181941 for ; Fri, 9 Jun 2017 18:20:22 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-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 (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id GgQtrY3LlrxB for ; Fri, 9 Jun 2017 18:20:21 +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 8349B60CF8 for ; Fri, 9 Jun 2017 18:20:20 +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 4F4C2E0DCC for ; Fri, 9 Jun 2017 18:20:19 +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 72C5A21E1A for ; Fri, 9 Jun 2017 18:20:18 +0000 (UTC) Date: Fri, 9 Jun 2017 18:20:18 +0000 (UTC) From: "Rajeshbabu Chintaguntla (JIRA)" To: dev@phoenix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (PHOENIX-3898) Empty result set after split with local index on multi-tenant table MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 09 Jun 2017 18:20:24 -0000 [ https://issues.apache.org/jira/browse/PHOENIX-3898?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rajeshbabu Chintaguntla updated PHOENIX-3898: --------------------------------------------- Attachment: PHOENIX-3898_v2.patch [~jamestaylor] Here is the patch removes unnecessary code is getting view index from row key. We can directly get first two bytes from row key after removing the region start key. For salted we need to get two bytes after salted byte and we don't need all these extra logic. > Empty result set after split with local index on multi-tenant table > ------------------------------------------------------------------- > > Key: PHOENIX-3898 > URL: https://issues.apache.org/jira/browse/PHOENIX-3898 > Project: Phoenix > Issue Type: Bug > Reporter: Ankit Singhal > Assignee: Rajeshbabu Chintaguntla > Priority: Blocker > Fix For: 4.11.0 > > Attachments: PHOENIX-3898.patch, PHOENIX-3898_v2.patch > > > While testing encounters this(seems related to PHOENIX-3832):- > {code} > CREATE TABLE IF NOT EXISTS TM (PKA CHAR(15) NOT NULL, PKF CHAR(3) NOT NULL,PKP CHAR(15) NOT NULL, CRD DATE NOT NULL, EHI CHAR(15) NOT NULL, FID CHAR(15), CREATED_BY_ID VARCHAR,FH VARCHAR, DT VARCHAR, OS VARCHAR, NS VARCHAR, OFN VARCHAR CONSTRAINT PK PRIMARY KEY ( PKA, PKF, PKP, CRD DESC, EHI )) VERSIONS=1 ,MULTI_TENANT=true; > CREATE LOCAL INDEX IF NOT EXISTS TIDX ON TM (PKF, CRD, PKP, EHI); > {code} > {code} > 0: jdbc:phoenix:localhost> select count(*) from tidx; > +-----------+ > | COUNT(1) | > +-----------+ > | 300000 | > +-----------+ > {code} > {code} > hbase(main):002:0> split 'TM' > {code} > {code} > 0: jdbc:phoenix:localhost> select count(*) from tidx; > +-----------+ > | COUNT(1) | > +-----------+ > | 0 | > +-----------+ > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346)