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

Enforce correct shard key for inserts on shard

    • Fully Compatible

      Currently mongos validates that the shard key as it sends data to the shard but the shard doesn't ensure that the shard key value is correct for itself. It is possible that a bug in routing could cause a document to be sent to a shard that is incorrect and the shard will not have an error (allowing the insert).

      This enforcement should only apply to sharded connections so that maintenance and admin work can be done directly to the shard.

      If this is done this should also be applied to inserts on updates (upsert:true case) as well.

            Assignee:
            Unassigned Unassigned
            Reporter:
            scotthernandez Scott Hernandez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: