[SERVER-44299] Add tests for hashed shard key Created: 29/Oct/19  Updated: 29/Oct/23  Resolved: 13/Nov/19

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 4.3.1

Type: Task Priority: Major - P3
Reporter: Randolph Tan Assignee: Cheahuychou Mao
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Issue split
split to SERVER-44411 Test that insert/update/delete/findAn... Closed
split to SERVER-44412 Test that _getNextSessionMods for has... Closed
split to SERVER-44413 Test mergeChunk in hashed sharding Closed
split to SERVER-44535 Test moveChunk and rangeDeleter in ha... Closed
split to SERVER-44536 Test that $merge sends results to the... Closed
split to SERVER-44552 Test that ShardFilterStage filters ou... Closed
split to SERVER-44561 Test that find with readConcern snaps... Closed
Related
related to SERVER-44003 Create a test plan for hashed sharding Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2019-11-18
Participants:

 Description   
  • 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)


Generated at Thu Feb 08 05:05:36 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.