Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9FBD7200BF7 for ; Mon, 9 Jan 2017 15:53:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 9E748160B4C; Mon, 9 Jan 2017 14:53:00 +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 E733C160B3B for ; Mon, 9 Jan 2017 15:52:59 +0100 (CET) Received: (qmail 23634 invoked by uid 500); 9 Jan 2017 14:52:59 -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 23583 invoked by uid 99); 9 Jan 2017 14:52:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jan 2017 14:52:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A88912C2A6D for ; Mon, 9 Jan 2017 14:52:58 +0000 (UTC) Date: Mon, 9 Jan 2017 14:52:58 +0000 (UTC) From: "ChiaPing Tsai (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (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 archived-at: Mon, 09 Jan 2017 14:53:00 -0000 [ https://issues.apache.org/jira/browse/HBASE-15600?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] ChiaPing Tsai reassigned HBASE-15600: ------------------------------------- Assignee: ChiaPing Tsai (was: Rajeshbabu Chintaguntla) > 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: ChiaPing Tsai > Labels: phoenix > Fix For: 2.0.0, 1.3.0, 1.4.0 > > Attachments: HBASE-15600.patch, HBASE-15600_v1.patch, HBASE-15600_v2.patch, hbase-15600_v3.patch, hbase-15600_v4.patch, hbase-15600_v5.patch, hbase-15600_v6.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)