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

Router might target wrong shard on write operation for unsharded collection

    • Fully Compatible
    • ALL
    • v4.0
    • Sharding 2020-04-20
    • 14

      Suppose we have 2 shards: shard0 and shard1 and 2 routers: router0 and router1.

      From router0 we create an unsharded collection making sure that the primary shard is shard0. If we issue a write operation from router1 to that same collection, it might be targeted to shard1, which will cause the insert operation to fail. Refer to the build failure comments for more information.

            Assignee:
            blake.oler@mongodb.com Blake Oler
            Reporter:
            marcos.grillo@mongodb.com Marcos José Grillo Ramirez
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: