Remove unnecesary contention in MovePrimaryCoordinator

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Catalog and Routing
    • 1
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, the request object is embedded directly in the coordinator document, which creates the need to acquire `_docMutex` each time it is accessed from the coordinator. There is a mismatch between the name of the only field in the original request document (to) mongo/src/mongo/s/request_types/move_primary.idl and the coordinator document (toShardId) mongo/src/mongo/db/s/move_primary_coordinator_document.idl. Changing the name of the coordinator document field to match the request would allow to simply chain the request document inside the coordinator document, and thus it could be copied on construction to avoid contention later. This change should take into account version update issues.

            Assignee:
            Unassigned
            Reporter:
            Aitor Esteve Alvarado
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: