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 BC61C1837D for ; Wed, 17 Feb 2016 02:39:18 +0000 (UTC) Received: (qmail 38582 invoked by uid 500); 17 Feb 2016 02:39:18 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 38533 invoked by uid 500); 17 Feb 2016 02:39:18 -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 38508 invoked by uid 99); 17 Feb 2016 02:39:18 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Feb 2016 02:39:18 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 1EC3B2C1F5D for ; Wed, 17 Feb 2016 02:39:18 +0000 (UTC) Date: Wed, 17 Feb 2016 02:39:18 +0000 (UTC) From: "Heng Chen (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-15259) WALEdits under replay will also be replicated 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-15259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15149737#comment-15149737 ] Heng Chen commented on HBASE-15259: ----------------------------------- Sounds good. Dear [~ram_krish], do you have time to go on with it, if no, let me know, i could take it over. :) > WALEdits under replay will also be replicated > --------------------------------------------- > > Key: HBASE-15259 > URL: https://issues.apache.org/jira/browse/HBASE-15259 > Project: HBase > Issue Type: Bug > Reporter: ramkrishna.s.vasudevan > Assignee: ramkrishna.s.vasudevan > Priority: Minor > Attachments: HBASE-15259.patch > > > I need to verify this but seeing the code > {code} > try { > // We are about to append this edit; update the region-scoped sequence number. Do it > // here inside this single appending/writing thread. Events are ordered on the ringbuffer > // so region sequenceids will also be in order. > regionSequenceId = entry.stampRegionSequenceId(); > // Edits are empty, there is nothing to append. Maybe empty when we are looking for a > // region sequence id only, a region edit/sequence id that is not associated with an actual > // edit. It has to go through all the rigmarole to be sure we have the right ordering. > if (entry.getEdit().isEmpty()) { > return; > } > // Coprocessor hook. > if (!coprocessorHost.preWALWrite(entry.getHRegionInfo(), entry.getKey(), > entry.getEdit())) { > if (entry.getEdit().isReplay()) { > // Set replication scope null so that this won't be replicated > entry.getKey().setScopes(null); > } > } > if (!listeners.isEmpty()) { > for (WALActionsListener i: listeners) { > // TODO: Why does listener take a table description and CPs take a regioninfo? Fix. > i.visitLogEntryBeforeWrite(entry.getHTableDescriptor(), entry.getKey(), > entry.getEdit()); > } > } > {code} > When a WALEdit is in replay we set the Logkey to null. But in the visitLogEntryBeforeWrite() we again set the LogKey based on the replication scope associated with the cells. So the previous step of setting null does not work here? -- This message was sent by Atlassian JIRA (v6.3.4#6332)