You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Chao Shi (JIRA)" <ji...@apache.org> on 2012/10/04 01:53:07 UTC

[jira] [Created] (HDFS-4004) TestJournalNode#testJournal fails because of test case execution order

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

[jira] [Resolved] (HDFS-4004) TestJournalNode#testJournal fails because of test case execution order

Posted by "Todd Lipcon (JIRA)" <ji...@apache.org>.
     [ 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