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

Remove resharding's DonorStateEnum::kPreparingToBlockWrites state

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.0.0-rc0
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • Sharding 2021-05-17
    • 1

      Donor shards engage the critical section on the collection being resharded during the shard version refresh with CoordinatorStateEnum::kBlockingWrites. Not engaging the critical section during the shard version refresh would be data loss because on recovery, from a primary failover, the donor shard would be allowing new incoming writes possibly after it had written the final resharding oplog entries already.

      The DonorStateEnum::kPreparingToBlockWrites state therefore provides no benefit and can safely be removed.

            Assignee:
            haley.connelly@mongodb.com Haley Connelly
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: