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

Router might target wrong shard on write operation for unsharded collection

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: