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 00AEABFF5 for ; Mon, 16 Jan 2012 18:50:03 +0000 (UTC) Received: (qmail 77810 invoked by uid 500); 16 Jan 2012 18:50:02 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 77496 invoked by uid 500); 16 Jan 2012 18:50:02 -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 77110 invoked by uid 99); 16 Jan 2012 18:50:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jan 2012 18:50:01 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jan 2012 18:50:00 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 4093314FCBF for ; Mon, 16 Jan 2012 18:49:40 +0000 (UTC) Date: Mon, 16 Jan 2012 18:49:40 +0000 (UTC) From: "Lars Hofhansl (Commented) (JIRA)" To: issues@hbase.apache.org Message-ID: <1401036427.45494.1326739780266.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1088859338.43192.1326667539792.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-5203) Group atomic put/delete operation into a single WALEdit to handle region server failures. 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-5203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13187074#comment-13187074 ] Lars Hofhansl commented on HBASE-5203: -------------------------------------- @Ram: I see what you mean. Good point. Unlike doMiniBatchPut there is no partial completion here, but the postHooks should indeed only be run if the (entire) operation was successful. I'll have a change soon. > Group atomic put/delete operation into a single WALEdit to handle region server failures. > ----------------------------------------------------------------------------------------- > > Key: HBASE-5203 > URL: https://issues.apache.org/jira/browse/HBASE-5203 > Project: HBase > Issue Type: Sub-task > Components: client, coprocessors, regionserver > Reporter: Lars Hofhansl > Assignee: Lars Hofhansl > Fix For: 0.94.0 > > Attachments: 5203.txt > > > HBASE-3584 does not not provide fully atomic operation in case of region server failures (see explanation there). > What should happen is that either (1) all edits are applied via a single WALEdit, or (2) the WALEdits are applied in async mode and then sync'ed together. > For #1 it is not clear whether it is advisable to manage multiple *different* operations (Put/Delete) via a single WAL edit. A quick check reveals that WAL replay on region startup would work, but that replication would need to be adapted. The refactoring needed would be non-trivial. > #2 Might actually not work, as another operation could request sync'ing a later edit and hence flush these entries out as well. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira