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

Investigate behavior when query against unsharded collection runs concurrently with shardCollection and moveChunk

    • Catalog and Routing
    • Execution Team 2023-01-09
    • 20

      Suppose a query is running against an unsharded collection and a concurrent 'shardCollection' shards the collection and a 'moveChunk' moves a chunk away from the primary shard. When the query yields and reacquires a snapshot of the collection, it's not clear whether there's anything that will protect the query from 'observing' that the collection has not only become sharded, but also some of the data has moved away from the primary shard. This ticket tracks the work to write a test that demonstrates the current behavior of the above scenario.

        1. repro-server-64128-a.js
          2 kB
        2. repro-server-64128-b.js
          2 kB

            Assignee:
            Unassigned Unassigned
            Reporter:
            mihai.andrei@mongodb.com Mihai Andrei
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated: