Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-53572

verifyTemporaryReshardingChunksMatchExpected in reshard_collection_basic.js does not assert the temporary chunk state

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 5.0.0-rc0
    • None
    • Sharding
    • None
    • Fully Compatible
    • ALL
    • Sharding 2021-05-17
    • 1

    Description

      verifyTemporaryReshardingChunksMatchExpected uses the 'size' property name instead of 'length' to check the size of an array. This causes the equality assertions to be no-ops since "undefined == undefined" and "0 < undefined" evaluates to true and false respectively.

      As it currently stands, fixing the 'size' issue causes the test to fail since the temp collection is renamed once resharding is successful. The test should either verify this using synchronization or only verify the properties of the output collection of the resharding command.

      Attachments

        Activity

          People

            janna.golden@mongodb.com Janna Golden
            lamont.nelson@mongodb.com Lamont Nelson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: