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

Incorrect assert message in TestWriteToReplica#testWriteToTemporary

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment