From issues-return-7105-archive-asf-public=cust-asf.ponee.io@phoenix.apache.org Sat May 25 01:51: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 C5F13180671 for ; Sat, 25 May 2019 03:51:02 +0200 (CEST) Received: (qmail 80319 invoked by uid 500); 25 May 2019 01:51:02 -0000 Mailing-List: contact issues-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 issues@phoenix.apache.org Received: (qmail 80308 invoked by uid 99); 25 May 2019 01:51: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; Sat, 25 May 2019 01:51: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 26C34E25AC for ; Sat, 25 May 2019 01:51: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 9A264256C1 for ; Sat, 25 May 2019 01:51:00 +0000 (UTC) Date: Sat, 25 May 2019 01:51:00 +0000 (UTC) From: "Hieu Nguyen (JIRA)" To: issues@phoenix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (PHOENIX-5295) Local Index data not replicating for older HBase versions (<= HBase 1.2) 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-5295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16848005#comment-16848005 ] Hieu Nguyen commented on PHOENIX-5295: -------------------------------------- [~tdsilva], uploaded v2 > Local Index data not replicating for older HBase versions (<= HBase 1.2) > ------------------------------------------------------------------------ > > Key: PHOENIX-5295 > URL: https://issues.apache.org/jira/browse/PHOENIX-5295 > Project: Phoenix > Issue Type: Bug > Environment: Branch 4.14-cdh5.11 > Reporter: Hieu Nguyen > Priority: Major > Attachments: PHOENIX-5295.4.14-cdh5.11.v1.patch, PHOENIX-5295.4.14-cdh5.11.v1.patch, PHOENIX-5295.4.14-cdh5.11.v2.patch > > Time Spent: 40m > Remaining Estimate: 0h > > Copied from email thread https://lists.apache.org/thread.html/7ab1d9489eca2ab2b974948fbe60b143fda432ef7dfc603528d460f2@%3Cuser.phoenix.apache.org%3E. > --- > We are on Phoenix 4.14-cdh5.11. We are experiencing an issue where local index data is not being replicated through HBase replication. As suggested in a previous email thread (https://lists.apache.org/thread.html/984fba3c8abd944846deefb3ea285195e0436b9181b9779feac39b59@%3Cuser.phoenix.apache.org%3E), we have enabled replication for the local indexes (the "L#0" column family on the same table). We wrote an integration test to demonstrate this issue on top of 4.14-cdh5.11 branch (https://github.com/hnguyen08/phoenix/commit/3589cb45d941c6909fb3deb5f5abb0f8dfa78dd7). > After some investigation and debugging, we discovered the following: > 1. Commit a2f4d7eebec621b58204a9eb78d552f18dcbcf24 (PHOENIX-3827) fixed the issue, but only in Phoenix for HBase1.3+. It uses the miniBatchOp.addOperationsFromCP() API introduced in HBase1.3. Unfortunately, for the time being, we are stuck on cdh5.11 (based on HBase1.2). > 2. IndexUtil.writeLocalUpdates() is called in both implementations of IndexCommitter, both taking skipWAL=true. It seems like we'd actually want to not skip WAL to ensure that local-index updates are replicated correctly (since, as mentioned in the above email thread, "HBase-level replication of the data table will not trigger index updates"). After changing the skipWAL flag to false, the above integration test passes. -- This message was sent by Atlassian JIRA (v7.6.3#76005)