From dev-return-58260-archive-asf-public=cust-asf.ponee.io@phoenix.apache.org Tue Oct 1 00:05: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 [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id CE47D180674 for ; Tue, 1 Oct 2019 02:05:02 +0200 (CEST) Received: (qmail 97964 invoked by uid 500); 1 Oct 2019 00:05:02 -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 97941 invoked by uid 99); 1 Oct 2019 00:05:02 -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; Tue, 01 Oct 2019 00:05:01 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 399CDE2DEA for ; Tue, 1 Oct 2019 00:05:00 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 29477780749 for ; Tue, 1 Oct 2019 00:05:00 +0000 (UTC) Date: Tue, 1 Oct 2019 00:05:00 +0000 (UTC) From: "Kadir Ozdemir (Jira)" To: dev@phoenix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (PHOENIX-5503) IndexTool does not rebuild all the rows MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Kadir Ozdemir created PHOENIX-5503: -------------------------------------- Summary: IndexTool does not rebuild all the rows Key: PHOENIX-5503 URL: https://issues.apache.org/jira/browse/PHOENIX-5503 Project: Phoenix Issue Type: Bug Affects Versions: 4.14.3, 5.0.0, 4.15.0 Reporter: Kadir Ozdemir IndexTool builds a subset of the rows of an index table. The rows that are = created after the time specified by the timestamp of the PTable (i.e., tabl= e metadata structure maintained in memory) for the index table are not rebu= ilt. This timestamp is updated by the PTable builder, that is,=C2=A0 at the= time of creating the PTable structure int memory. Based on the comment on = the code (see=C2=A0IndexTool.getJob()), this is done to "ensure=C2=A0index = tables remains consistent post population".=C2=A0 Such consistency issue ma= y exist for client side index build but PHOENIX-5018 (server side index bui= ld) does not have such an issue. However, PHOENIX-5018 did not change this = behavior. In order to upgrade an index table to PHOENIX-5156 (new index des= ign), we need to rebuild all the rows that are created before the table is = upgraded (not before the timestamp of the index table). Also, we may want t= o use the IndexTool rebuild an index table online. In that case, we may wan= t include as many rows as possible. This issue is to make sure that IndexTo= ol builds all the rows that exist at the time the tool starts running.=C2= =A0 -- This message was sent by Atlassian Jira (v8.3.4#803005)