From dev-return-48681-archive-asf-public=cust-asf.ponee.io@phoenix.apache.org Mon Jan 22 21:42:04 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id E6413180609 for ; Mon, 22 Jan 2018 21:42:04 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id D66A3160C4B; Mon, 22 Jan 2018 20:42:04 +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 2888D160C32 for ; Mon, 22 Jan 2018 21:42:04 +0100 (CET) Received: (qmail 18240 invoked by uid 500); 22 Jan 2018 20:42:03 -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 18227 invoked by uid 99); 22 Jan 2018 20:42:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Jan 2018 20:42:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id C7C85C2F28 for ; Mon, 22 Jan 2018 20:42:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -107.911 X-Spam-Level: X-Spam-Status: No, score=-107.911 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id zL7cEE3tY0Iw for ; Mon, 22 Jan 2018 20:42:02 +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 EAAA95FAE4 for ; Mon, 22 Jan 2018 20:42:01 +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 7FAFDE0F77 for ; Mon, 22 Jan 2018 20:42: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 16A4921208 for ; Mon, 22 Jan 2018 20:42:01 +0000 (UTC) Date: Mon, 22 Jan 2018 20:42:01 +0000 (UTC) From: "Josh Elser (JIRA)" To: dev@phoenix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (PHOENIX-4531) Delete on a table with a global mutable index can issue client-side deletes against the index MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/PHOENIX-4531?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D16= 334861#comment-16334861 ]=20 Josh Elser commented on PHOENIX-4531: ------------------------------------- Also, I have it on my list to go back through the changes and get things sy= nced up again between the 4.x and 5.x stuff. One more tacked onto that list= isn't the end of the world. > Delete on a table with a global mutable index can issue client-side delet= es against the index > -------------------------------------------------------------------------= -------------------- > > Key: PHOENIX-4531 > URL: https://issues.apache.org/jira/browse/PHOENIX-4531 > Project: Phoenix > Issue Type: Bug > Affects Versions: 4.13.0 > Environment: =20 > Reporter: Vincent Poon > Assignee: Vincent Poon > Priority: Major > Fix For: 4.14.0 > > Attachments: PHOENIX-4531.v1.master.patch, PHOENIX-4531.v3.master= .patch, PHOENIX-4531.v4.master.patch, PHOENIX-4531.v5.master.patch, PHOENIX= -4531_v1.patch, PHOENIX-4531_v2.patch, PartialIndexRebuilderIT.java > > > For a table with a global mutable index, I found the following result in = client-side deletes against both the data table and index table. > "DELETE FROM data_table"=C2=A0 > "DELETE FROM data_table WHERE indexed_col=3D'v'" > We only need the delete to be issued against the data table, because > 1) It's redundant since a delete against the index will be issued on the = server side when we process the delete of the data table row > 2) Deletes issued from the client-side won't have the index failure polic= y -- This message was sent by Atlassian JIRA (v7.6.3#76005)