From dev-return-55964-archive-asf-public=cust-asf.ponee.io@phoenix.apache.org Wed Apr 3 21:20:03 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id C748318075F for ; Wed, 3 Apr 2019 23:20:02 +0200 (CEST) Received: (qmail 34641 invoked by uid 500); 3 Apr 2019 21:20:01 -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 34572 invoked by uid 99); 3 Apr 2019 21:20:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Apr 2019 21:20:01 +0000 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 31B8FE29ED for ; Wed, 3 Apr 2019 21:20:01 +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 6CED1245A5 for ; Wed, 3 Apr 2019 21:20:00 +0000 (UTC) Date: Wed, 3 Apr 2019 21:20:00 +0000 (UTC) From: "Geoffrey Jacoby (JIRA)" To: dev@phoenix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (PHOENIX-5138) ViewIndexId sequences created after PHOENIX-5132 shouldn't collide with ones created before it MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/PHOENIX-5138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Geoffrey Jacoby updated PHOENIX-5138: ------------------------------------- Attachment: PHOENIX-5138-v3.patch > ViewIndexId sequences created after PHOENIX-5132 shouldn't collide with ones created before it > ---------------------------------------------------------------------------------------------- > > Key: PHOENIX-5138 > URL: https://issues.apache.org/jira/browse/PHOENIX-5138 > Project: Phoenix > Issue Type: Bug > Affects Versions: 4.15.0, 5.1 > Reporter: Geoffrey Jacoby > Assignee: Geoffrey Jacoby > Priority: Blocker > Fix For: 4.15.0, 5.1.0 > > Attachments: PHOENIX-5138-v2.patch, PHOENIX-5138-v3.patch, PHOENIX-5138.patch > > Time Spent: 1h 40m > Remaining Estimate: 0h > > PHOENIX-5132 changed the ViewIndexId generation logic to use one sequence per physical view index table, whereas before it had been tenant + physical table. This removed the possibility of a tenant view index and a global view index having colliding ViewIndexIds. > However, existing Phoenix environments may have already created tenant-owned view index ids using the old sequence, and under PHOENIX-5132 if they create another, its ViewIndexId will got back to MIN_VALUE, which could cause a collision with an existing view index id. -- This message was sent by Atlassian JIRA (v7.6.3#76005)