Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-44299

Add tests for hashed shard key

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.1
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Fully Compatible
    • Sharding 2019-11-18

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

            Assignee:
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Reporter:
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: