Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-9148

Incorrect assert message in TestWriteToReplica#testWriteToTemporary

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 2.7.1
    • 2.8.0, 3.0.0-alpha1
    • test
    • None

    Description

      The following assert text in TestWriteToReplica#testWriteToTemporary is not correct:

            Assert.fail("createRbw() Should have removed the block with the older "
                + "genstamp and replaced it with the newer one: " + blocks[NON_EXISTENT]);
      

      If the assert is triggered, it can only be due to an temporary replica already exists and has newer generation stamp. It should have nothing to do with createRbw().

      Attachments

        1. hdfs-9148.patch
          1 kB
          Tony Wu

        Activity

          People

            twu Tony Wu
            twu Tony Wu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: