- insert gets targeted to right shard
- update gets targeted to right shard
- delete gets targeted to right shard
- insert gets targeted to right shard during migration
- update gets targeted to right shard during migration
- delete gets targeted to right shard during migration
- insert gets targeted to right shard during migration (2PC)
- update gets targeted to right shard during migration (2PC)
- delete gets targeted to right shard during migration (2PC)
- findAndModify gets targeted to right shard
- find gets targeted to right shard
- find with readConcern snapshot that will be targeted differently in the current snapshot gets correctly targeted
- _getNextSessionMods correctly filters out unrelated documents during migration
- right documents get moved in moveChunk
- right documents get deleted by rangeDeleter
- ShardFilterStage works correctly
- $merge sends results to the right shard (existing test doesn't really check proper targetting)
- Can merge chunks
Note: most existing tests kind of indirectly test these via passthrough or aggregated testing (like checking count of documents, instead of targetted tests)
|