-
Type:
Bug
-
Resolution: Duplicate
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Execution
-
ALL
-
None
-
None
-
None
-
None
-
None
-
None
-
None
In SERVER-128992 we attempted to add a new concurrency suite that randomly triggers sharding metadata invalidates.
In doing so we discovered that deletes may inadvertedly return only the last counter of deleted documents after an operation is retried. This is due to the following timeline of events:
- A delete with {multi: true} is partially applied with some documents having been deleted successfully.
- At some point the operation encounters a StaleConfig.
- The operation proceeds to bubble up the failure upwards before doing any sort of partial counter stashing. This is because the operation will only ever set the number of documents returned in the response after a successful execution.
- The operation is retried because it is a retryable error.
- The number of documents deleted that is returned to the user is now based on this new execution.
- duplicates
-
SERVER-66949 The reported count of documents deleted by a targeted deleteMany lower than what is actually deleted
-
- Backlog
-
- is related to
-
SERVER-66949 The reported count of documents deleted by a targeted deleteMany lower than what is actually deleted
-
- Backlog
-
-
SERVER-128992 Add background hook that clears out shard filtering metadata
-
- In Progress
-