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

Incorrect assert message in TestWriteToReplica#testWriteToTemporary

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.7.1
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: test
    • Labels:
      None
    • Target Version/s:

      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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: