[SERVER-85650] crud_and_ddl.js should use transitionToDedicated like removeShard Created: 24/Jan/24  Updated: 02/Feb/24  Resolved: 02/Feb/24

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 8.0.0-rc0

Type: Bug Priority: Major - P3
Reporter: Allison Easton Assignee: Allison Easton
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-81461 Change tests that uses movePrimary to... In Code Review
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: CAR Team 2024-02-05
Participants:

 Description   

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


 Comments   
Comment by Githook User [ 02/Feb/24 ]

Author:

{'name': 'Allison Easton', 'email': 'allison.easton@mongodb.com', 'username': 'allisoneaston'}

Message: SERVER-85650 crud_and_ddl.js should use transitionToDedicated like removeShard (#18413)

GitOrigin-RevId: 98b099e47fa6f6573b423a77879fb4f6b625da38
Branch: master
https://github.com/mongodb/mongo/commit/54d0b0d1475c24354a0cd1fdbbad81034b0a0dd9

Generated at Thu Feb 08 06:58:16 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.