-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Catalog and Routing
-
CAR Team 2026-03-30, CAR Team 2026-07-06
-
🟥 DDL
-
None
-
None
-
None
-
None
-
None
-
None
Several internal shardsvr commands persist authoritative shard catalog metadata by calling shard_catalog_commit helpers on a new OperationContext created via AlternativeClientRegion.
When execution control deprioritization is enabled, that alternative opCtx does not inherit the parent command's admission-control task type. Under load, the shard catalog commit work can therefore be deprioritized, delaying the commit of the shard catalog, which is holding the critical section blocking reads and writes.
For each affected command, after creating the alternative opCtx, we should add:
admission::execution_control::ScopedTaskTypeNonDeprioritizable deprioGuard(newOpCtx.get());
Affected commands:
| Command | shard_catalog_commit helper | Should bypass deprio? |
|---|---|---|
| _shardsvrCommitCreateCollectionMetadata | commitCollectionMetadataLocally | Yes |
| _shardsvrCommitCreateCollectionChunklessMetadata | commitChunklessCollectionMetadataLocally | Yes |
| _shardsvrCommitCollModCollectionMetadata | commitCollectionMetadataLocally | Yes |
| _shardsvrCommitRefineCollectionShardKey | commitCollectionMetadataLocally | Yes |
| _shardsvrCommitDropCollectionMetadata | commitDropCollectionLocally | Yes |
| _shardsvrCommitRenameCollectionMetadata | commitRenameOfCollectionMetadata | Yes |
| _shardsvrFetchCollMetadata | cloneCollectionMetadataLocally | No: this operation is not done within the critical section |
| _shardsvrSetAllowChunkOperations | commitSetAllowChunkOperationsLocally | No: this operation is not done within the critical section |
| _shardsvrRenameCollectionUnblockParticipant | commitDropOfStaleChunksForRename | Yes |
| _shardsvrCommitChunkOperationsMetadata | updateCollectionMetadata | Yes |
- depends on
-
SERVER-126988 New entrypoint in shard catalog to commit delta chunk operations
-
- Closed
-
-
SERVER-127653 [Placeholder] All DDLs are authoritative
-
- Closed
-