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 C83E9DF91 for ; Wed, 26 Sep 2012 10:18:08 +0000 (UTC) Received: (qmail 7076 invoked by uid 500); 26 Sep 2012 10:18:08 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 7028 invoked by uid 500); 26 Sep 2012 10:18:08 -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 7003 invoked by uid 99); 26 Sep 2012 10:18:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Sep 2012 10:18:07 +0000 Date: Wed, 26 Sep 2012 21:18:07 +1100 (NCT) From: "nkeywal (JIRA)" To: issues@hbase.apache.org Message-ID: <912788763.127689.1348654687801.JavaMail.jiratomcat@arcas> In-Reply-To: <1499547991.121998.1348581616273.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (HBASE-6878) DistributerLogSplit can fail to resubmit a task done if there is an exception during the log archiving 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-6878?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13463686#comment-13463686 ] nkeywal commented on HBASE-6878: -------------------------------- Any feedback on this? It's in the "probability of occurrence: very low" category, but HBASE-6738 increases the delay so the probability, so I would prefer to commit the two altogether. A few lines after the one mentioned in the description there is a similar pattern. I will fix both of them if it's confirmed. > DistributerLogSplit can fail to resubmit a task done if there is an exception during the log archiving > ------------------------------------------------------------------------------------------------------ > > Key: HBASE-6878 > URL: https://issues.apache.org/jira/browse/HBASE-6878 > Project: HBase > Issue Type: Bug > Components: master > Reporter: nkeywal > Priority: Minor > > The code in SplitLogManager# getDataSetWatchSuccess is: > {code} > if (slt.isDone()) { > LOG.info("task " + path + " entered state: " + slt.toString()); > if (taskFinisher != null && !ZKSplitLog.isRescanNode(watcher, path)) { > if (taskFinisher.finish(slt.getServerName(), ZKSplitLog.getFileName(path)) == Status.DONE) { > setDone(path, SUCCESS); > } else { > resubmitOrFail(path, CHECK); > } > } else { > setDone(path, SUCCESS); > } > {code} > resubmitOrFail(path, CHECK); > should be > resubmitOrFail(path, FORCE); > Without it, the task won't be resubmitted if the delay is not reached, and the task will be marked as failed. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira