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

Retryable FLE2 update and findAndModify fails on retry if document is removed

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.3.0-rc0, 7.0.5
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v7.2, v7.0
    • Hide

      1. create QE encrypted collection: testColl
      2. insert document {_id: 1, name: "erwin"}
      3. start session with retryable writes
      4. (in session) update/findAndModify {_id: 1} and set "name" to something else
      5. (outside session) delete {_id: 1}
      6. (in session) issue the same command as #4: fails due to code 7293302.

      Show
      1. create QE encrypted collection: testColl 2. insert document { _id: 1, name: "erwin" } 3. start session with retryable writes 4. (in session) update/findAndModify { _id: 1 } and set "name" to something else 5. (outside session) delete { _id: 1 } 6. (in session) issue the same command as #4: fails due to code 7293302.
    • Security 2023-11-27
    • 157

      On a FLE2 collection, if a document that was modified by a retryable update/findAndModify is subsequently deleted, and the update/findAndModify was retried, instead of returning the same response as the original operation, the server returns an error: "Could not find pre-image document by _id". with code 7293302.

            Assignee:
            erwin.pe@mongodb.com Erwin Pe
            Reporter:
            erwin.pe@mongodb.com Erwin Pe
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: