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

Remove unnecesary contention in MovePrimaryCoordinator

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

      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 Unassigned
            Reporter:
            aitor.esteve@mongodb.com Aitor Esteve Alvarado
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: