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 731221091C for ; Mon, 6 Jan 2014 18:02:31 +0000 (UTC) Received: (qmail 46168 invoked by uid 500); 6 Jan 2014 18:00:07 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 46049 invoked by uid 500); 6 Jan 2014 17:59:58 -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 46023 invoked by uid 99); 6 Jan 2014 17:59:53 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jan 2014 17:59:53 +0000 Date: Mon, 6 Jan 2014 17:59:53 +0000 (UTC) From: "Jeffrey Zhong (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-10130) TestSplitLogManager#testTaskResigned fails sometimes 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-10130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13863166#comment-13863166 ] Jeffrey Zhong commented on HBASE-10130: --------------------------------------- {code} int version1 = ZKUtil.checkExists(zkw, tasknode); assertTrue("version1=" + version1 + ", version=" + version, version1 > version); {code} The patch fix looks good to me though I'd prefer to remove the above two lines because 1)the risking condition on getting the original version 2) when the following verification is true: {code} assertEquals(tot_mgr_resubmit.get(), 1); {code} The znode version is also verified to be bumped up. > TestSplitLogManager#testTaskResigned fails sometimes > ---------------------------------------------------- > > Key: HBASE-10130 > URL: https://issues.apache.org/jira/browse/HBASE-10130 > Project: HBase > Issue Type: Test > Reporter: Ted Yu > Assignee: Ted Yu > Priority: Minor > Attachments: 10130-output.txt, 10130-v1.txt > > > The test failed in https://builds.apache.org/job/PreCommit-HBASE-Build/8131//testReport > For testTaskResigned() : > {code} > int version = ZKUtil.checkExists(zkw, tasknode); > // Could be small race here. > if (tot_mgr_resubmit.get() == 0) waitForCounter(tot_mgr_resubmit, 0, 1, to/2); > {code} > There was no log similar to the following (corresponding to waitForCounter() call above): > {code} > 2013-12-10 21:23:54,905 INFO [main] hbase.Waiter(174): Waiting up to [3,200] milli-secs(wait.for.ratio=[1]) > {code} > Meaning, the version (2) retrieved corresponded to resubmitted task. version1 retrieved same value, leading to assertion failure. -- This message was sent by Atlassian JIRA (v6.1.5#6160)