crud_and_ddl.js should use transitionToDedicated like removeShard

XMLWordPrintableJSON

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

      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
            Reporter:
            Allison Easton
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: