Return-Path: Delivered-To: apmail-hadoop-hbase-dev-archive@locus.apache.org Received: (qmail 6313 invoked from network); 11 Aug 2008 14:58:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Aug 2008 14:58:36 -0000 Received: (qmail 65243 invoked by uid 500); 11 Aug 2008 14:58:35 -0000 Delivered-To: apmail-hadoop-hbase-dev-archive@hadoop.apache.org Received: (qmail 65225 invoked by uid 500); 11 Aug 2008 14:58:34 -0000 Mailing-List: contact hbase-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hbase-dev@hadoop.apache.org Delivered-To: mailing list hbase-dev@hadoop.apache.org Received: (qmail 65214 invoked by uid 99); 11 Aug 2008 14:58:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Aug 2008 07:58:34 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Aug 2008 14:57:47 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C8168234C1A2 for ; Mon, 11 Aug 2008 07:57:44 -0700 (PDT) Message-ID: <801628467.1218466664818.JavaMail.jira@brutus> Date: Mon, 11 Aug 2008 07:57:44 -0700 (PDT) From: "Sebastien Rainville (JIRA)" To: hbase-dev@hadoop.apache.org Subject: [jira] Commented: (HBASE-810) Prevent temporary deadlocks when, during a scan with write operations, the region splits In-Reply-To: <1671905493.1218244604398.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12621469#action_12621469 ] Sebastien Rainville commented on HBASE-810: ------------------------------------------- What's the most problematic about this issue is that if we're in the context of a map/reduce job and that a map task fails when a split occurs then when the task is restarted it will only scan the rows in the resulting first region... simply because the input of a hbase map/reduce job is split based on the regions. Actually, is it a bigger problem that could be the consequence of other *normal* failures in a map task? > Prevent temporary deadlocks when, during a scan with write operations, the region splits > ---------------------------------------------------------------------------------------- > > Key: HBASE-810 > URL: https://issues.apache.org/jira/browse/HBASE-810 > Project: Hadoop HBase > Issue Type: Bug > Affects Versions: 0.2.0 > Reporter: Jean-Daniel Cryans > Priority: Minor > Fix For: 0.2.1, 0.3.0 > > > HBASE-804 was not about the good problem, this one is. Anyone that iterates through the results of a scanner and that rewrites data back into the row at each iteration will hit a UnknownScannerException if a split occurs. See the stack in the referred jira. Timeline : > Split occurs, acquires a write lock and waits for scanners to finish > The scanner in the custom code iterates and writes data until the write is blocked by the lock > deadlock > The scanner timeouts thus the region splits but the USE will be thrown when next() is called > Inside a Map, the task will simply be retried when the first one fails. Elsewhere, it becomes more complicated. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.