Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-7592

Comment on: "manual/reference/command/findAndModify.txt"

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 01112017-cleanup
    • None
    • None

    Description

      https://docs.mongodb.org/manual/reference/command/findAndModify/

      There is a dotted lines in the last paragraph of "Upsert and Unique Index" section as follows:

      Zero or more findAndModify commands fail when they attempt to insert a duplicate. If the command fails due to a unique index constraint violation, you can retry the command. Absent a delete of the document, the retry should not fail.

      I belive it's completely wrong description. Once violation occurred due to the unique index, retry the command repeat the same violation.
      So the last line, "the retry should not fail" is wrong.
      Or maybe I don't understand the description. Please review & revise the description.

      Attachments

        Activity

          People

            Unassigned Unassigned
            xgen-internal-docs Docs Collector User (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              7 years, 44 weeks, 1 day ago