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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 5.0.0-rc0
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Sharding 2021-05-17
    • 1

      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.

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

              Created:
              Updated:
              Resolved: