[SERVER-82812] Remove unnecesary contention in MovePrimaryCoordinator Created: 06/Nov/23  Updated: 12/Dec/23

Status: Backlog
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Aitor Esteve Alvarado Assignee: Backlog - Catalog and Routing
Resolution: Unresolved Votes: 0
Labels: 12/12
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Catalog and Routing
Participants:
Story Points: 1

 Description   

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.


Generated at Thu Feb 08 06:50:21 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.