Return-Path: X-Original-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 02F8EDBBE for ; Thu, 4 Oct 2012 01:43:09 +0000 (UTC) Received: (qmail 94741 invoked by uid 500); 4 Oct 2012 01:43:08 -0000 Delivered-To: apmail-hadoop-hdfs-dev-archive@hadoop.apache.org Received: (qmail 94671 invoked by uid 500); 4 Oct 2012 01:43:08 -0000 Mailing-List: contact hdfs-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-dev@hadoop.apache.org Delivered-To: mailing list hdfs-dev@hadoop.apache.org Received: (qmail 94641 invoked by uid 99); 4 Oct 2012 01:43:08 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Oct 2012 01:43:08 +0000 Date: Thu, 4 Oct 2012 12:43:08 +1100 (NCT) From: "Todd Lipcon (JIRA)" To: hdfs-dev@hadoop.apache.org Message-ID: <1731236249.163349.1349314988172.JavaMail.jiratomcat@arcas> In-Reply-To: <962334561.162542.1349308387565.JavaMail.jiratomcat@arcas> Subject: [jira] [Resolved] (HDFS-4004) TestJournalNode#testJournal fails because of test case execution order 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/HDFS-4004?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Todd Lipcon resolved HDFS-4004. ------------------------------- Resolution: Fixed Target Version/s: QuorumJournalManager (HDFS-3077) Hadoop Flags: Reviewed Committed to the branch, thanks Chao! > TestJournalNode#testJournal fails because of test case execution order > ---------------------------------------------------------------------- > > Key: HDFS-4004 > URL: https://issues.apache.org/jira/browse/HDFS-4004 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: ha > Reporter: Chao Shi > Assignee: Chao Shi > Priority: Minor > Fix For: QuorumJournalManager (HDFS-3077) > > Attachments: hdfs-4004.txt > > > I'm running HDFS test on HDFS-3077 branch. I found TestJournalNode#testJournal fails sometimes. The assertion failed is: > MetricsAsserts.assertCounter("BatchesWritten", 0L, metrics); > The reason is when testHttpServer is running before testJournal, it will write some logs to JN. The fix is simple: assign a new JID for each test case, so that they will use different metrics. -- 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