Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D713D195B7 for ; Thu, 7 Apr 2016 15:59:28 +0000 (UTC) Received: (qmail 91570 invoked by uid 500); 7 Apr 2016 15:59:25 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 91514 invoked by uid 500); 7 Apr 2016 15:59:25 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 91170 invoked by uid 99); 7 Apr 2016 15:59:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Apr 2016 15:59:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 902E22C1F6A for ; Thu, 7 Apr 2016 15:59:25 +0000 (UTC) Date: Thu, 7 Apr 2016 15:59:25 +0000 (UTC) From: "ramkrishna.s.vasudevan (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-15600) Add provision for adding mutations to memstore or able to write to same region in batchMutate coprocessor hooks 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/HBASE-15600?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15230466#comment-15230466 ] ramkrishna.s.vasudevan commented on HBASE-15600: ------------------------------------------------ Just saw the discussion. Will check the patch and get back here sooner. > Add provision for adding mutations to memstore or able to write to same region in batchMutate coprocessor hooks > --------------------------------------------------------------------------------------------------------------- > > Key: HBASE-15600 > URL: https://issues.apache.org/jira/browse/HBASE-15600 > Project: HBase > Issue Type: Improvement > Reporter: Rajeshbabu Chintaguntla > Assignee: Rajeshbabu Chintaguntla > Fix For: 2.0.0, 0.98.19, 1.1.5, 1.2.2, 1.0.5 > > Attachments: HBASE-15600.patch, HBASE-15600_v1.patch, HBASE-15600_v2.patch > > > As part of PHOENIX-1734 we need to write the index updates to same region from coprocessors but writing from batchMutate API is not allowed because of mvcc. > Raised PHOENIX-2742 to discuss any alternative way to write to the same region directly or not but not having any proper solution there. > Currently we have provision to write wal edits from coprocessors. We can set wal edits in MiniBatchOperationInProgress. > {noformat} > /** > * Sets the walEdit for the operation(Mutation) at the specified position. > * @param index > * @param walEdit > */ > public void setWalEdit(int index, WALEdit walEdit) { > this.walEditsFromCoprocessors[getAbsoluteIndex(index)] = walEdit; > } > {noformat} > Similarly we can allow to write mutations from coprocessors to memstore as well. Or else we should provide the batch mutation API allow write in batch mutate coprocessors. -- This message was sent by Atlassian JIRA (v6.3.4#6332)