Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-3077 Quorum-based protocol for reading and writing edit logs
  3. HDFS-4004

TestJournalNode#testJournal fails because of test case execution order

    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        1. hdfs-4004.txt
          5 kB
          Chao Shi

        Activity

          People

            stepinto Chao Shi
            stepinto Chao Shi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: