Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-5077

DocumentNotFound message fails to account for shard key

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 8.0.1
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible

      When a document is reloaded, in sharded topology the find is performed using the _id + the shard key. If the find returns no results, DocumentNotFound is raised. The exception message in this case only says that the document wasn't found by its id which is incorrect - the selector was id + shard key.

      See https://jira.mongodb.org/browse/MONGOID-5076.

            Assignee:
            neil.shweky@mongodb.com Neil Shweky (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: