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

    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.0
    • Sprint:
      Sharding 2020-04-20
    • Linked BF Score:
      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

            Assignee:
            blake.oler Blake Oler
            Reporter:
            marcos.grillo Marcos José Grillo Ramírez
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: