DocumentNotFound message fails to account for shard key

XMLWordPrintableJSON

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

      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 (Inactive)
            Reporter:
            Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: