-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Query Integration
-
None
-
None
-
None
-
None
-
None
-
None
-
None
After chunk migration, the donor shard deletes orphan documents (the documents that have been copied to the recipient). We should track these in query stats since it could be a big part of the customer workload and there are not a lot of Atlas metrics that make sense of it.
Including chunk migration process here since I found it helpful from glean (trying to move chunk from donor shard to recipient shard)
- recipient shard clones base docs from donor shard (these are inserts), donor tracks concurrent deletes/inserts/updates that occur on the migrating range as transfer mods. (This part should be tracked in query stats already)
- donor shard waits for recipient to catch up on transfer mods
- commits the docs and orphan cleanup happens - donor's local copies of documents in the migrated chunk range are deleted (not tracked in query stats)
- related to
-
SERVER-123131 Mark resharding commands as internal for query stats
-
- Backlog
-
-
SERVER-128010 Test chunk migration deletes are collected in query stats
-
- Closed
-