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

getCoordinatorDoc May Fail If Called From Retry Loop Which Deletes It

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Cluster Scalability
    • Fully Compatible
    • ALL
    • ClusterScalability Mar31-Apr14
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      As seen in BF-37193, the call to getCoordinatorDoc here added by SERVER-100421 may throw when ultimately invoked from here because the state document has already been deleted. This is possible if a transient error occurs after the coordinator document was deleted, triggering a retry. The case seen in BF-37193 was a transient error cause by an operation being killed due to stepdown, but the retry could progress enough between this event and the stepdown token being cancelled to fail to find the coordinator document and cause a fatal error.

            Assignee:
            brett.nawrocki@mongodb.com Brett Nawrocki
            Reporter:
            brett.nawrocki@mongodb.com Brett Nawrocki
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None