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

Add tests for hashed shard key

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.3.1
    • Component/s: Sharding
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Sharding 2019-11-18

      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)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              cheahuychou.mao Cheahuychou Mao
              Reporter:
              renctan Randolph Tan
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: