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

Reset the original user write blocking state on replicasets after fail during addShardCoordinator

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • CAR Team 2025-03-03

      The checkShardPrecondition phase of addShard before we check the replicaset cleanness we block user writes and if the replicaset had any data, then we unblock the user writes and fail. this is not 100% safe as the RS might had user write blocking already before we set it up, and in this case a failing addshard practically just unlocks the RS.

      the idea is to store the original blocking phase in the add shard coordinator document and use that data on failure.

            Assignee:
            annamaria.nestorov@mongodb.com Anna Maria Nestorov
            Reporter:
            adam.farkas@mongodb.com Wolfee Farkas
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: