Consider linking to documentation in the sharded upsert error message

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Fix
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Diagnostics
    • None
    • Query
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently in a sharded environment, the replacement document must contain the shard key. If not an error similar to the following can be generated:

      "errmsg" : "An upsert on a sharded collection must contain the shard key and have the simple collation. Update request: { q: { _id: 2.0 }, u: { a: 4.0 }, multi: false, upsert: true, collation: { locale: \"simple\" } }, shard key pattern: { _id: \"hashed\" }"
      

      It may be helpful to provide a link to the relevant documentation along with the error message. Users may be confused by the current message since q does contain the shard key and the locale is set as the expected "simple".

            Assignee:
            Backlog - Query Team (Inactive)
            Reporter:
            Chris Harris
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: