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

Use assert.soon to check that resharding content local to each participant is cleaned up

    • Fully Compatible
    • Sharding 2020-12-28, Sharding 2021-01-11
    • 35
    • 1

      During the teardown of the resharding fixture, we find that the donor document still exists when we expect it to have been already deleted. Because the ReshardingCoordinatorService will complete after waiting for donors to transition to kDone and we don't remove the donor document until after the donor transitions to kDone, it is possible that the donor document removal may not be seen immediately after the reshardCollection completes. 

      We can fix this issue if we change the failing assertion to an assert.soon. We also need to change the recipient document deletion assertion to an assert.soon as well.

            Assignee:
            sarah.zhou@mongodb.com Sarah Zhou
            Reporter:
            sarah.zhou@mongodb.com Sarah Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: