The ConvertToCapped coordinator _doc attribute is being read on ConvertToCappedCoordinator::checkIfOptionsConflict() without holding the _docMutex.
This can be solved, at least, through either of the following options:
- Acquire the _docMutex before accessing _doc.
- Add a new constant attribute on the coordinator for the ShardsvrConvertToCappedRequest field, and read from this new attribute instead of reading from _doc. This is how we've solved similar issues with other coordinators like CreateCollectionCoordinator or RenameCollectionCoordinator.
- is caused by
-
SERVER-86360 Converting an unsharded collection to capped leads to inconsistent metadata when featureFlagTrackUnshardedCollectionsOnShardingCatalog is enabled
- Closed