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

Typo in the TestDataNodeHotSwapVolumes.testAddOneNewVolume()

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.0
    • Component/s: None
    • Labels:
      None

      Description

      Should be maxNumBlocks-minNumBlocks

      lines 410-414:

          for (BlockListAsLongs blockList : blockReports.get(0).values()) {
            minNumBlocks = Math.min(minNumBlocks, blockList.getNumberOfBlocks());
            maxNumBlocks = Math.max(maxNumBlocks, blockList.getNumberOfBlocks());
          }
          assertTrue(Math.abs(maxNumBlocks - maxNumBlocks) <= 1);
      

        Attachments

        1. HDFS-12314.patch
          1 kB
          Oleg Danilov

          Activity

            People

            • Assignee:
              olegd Oleg Danilov
              Reporter:
              olegd Oleg Danilov

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment