Chao Shi created HDFS-4004: ------------------------------ Summary: 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: Bug Components: ha Reporter: Chao Shi Priority: Minor Fix For: QuorumJournalManager (HDFS-3077)
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