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

Resolve race condition for updating the coordinator doc in resharding_coordinator_service_test

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Cluster Scalability
    • Fully Compatible
    • Cluster Scalability 2025-03-03
    • 0
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None

      The various makeRecipients... / makeDonors... read the coordinator doc, update state, and write doc back to disk.

      This can cause a race condition since we update the coordinator doc as a part of the actual code execution and we could effectively erase some of the data written to the doc.

      Update the various functions to run an update instead of replacing the coordinator doc altogether.

            Assignee:
            ben.gawel@mongodb.com Ben Gawel
            Reporter:
            ben.gawel@mongodb.com Ben Gawel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: