ConfigsvrCoordinators (such as SetUserWriteBlockModeCoordinator and SetClusterParameterCoordinator) call insert a coordinator state document to initially checkpoint the operation on disk. Since the write is using a concern with timeout, it could happen the following:
- Coordinator starts and tries to insert the document
- The document is locally written but not yet majority committed
- The write concern timeout is hit
- The coordinator retries
- The retry fails because the document had already been inserted so a DuplicateKey error is thrown
- related to
-
SERVER-65930 DDL coordinators and rename participant initial checkpoint may incur in DuplicateKey error
- Closed