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

crud_and_ddl.js should use transitionToDedicated like removeShard

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • CAR Team 2024-02-05

      The crud_and_ddl test is calling transitionToDedicatedConfigServer once and then asserting that none of the sharded data has moved. Adding a sleep after the call to transitionToDedicated will cause the test to fail because in some of the test cases, the balancer succeeds in draining some of the sharded data before the checks in that case.

      The test should either

      1. Have the balancer on, call transitionToDedicated until it returns success (like removeShard), and assert that the sharded data has moved
      2. Manually move the data, call transitionToDedicated until it returns success, and assert that the sharded data has moved
      3. Ensure that the balancer is off, call transitionToDedicated, check that the transitionToDedicated has not succeeded due to sharded data on the "config" shard, and assert that the sharded data has not moved

            Assignee:
            allison.easton@mongodb.com Allison Easton
            Reporter:
            allison.easton@mongodb.com Allison Easton
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: