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

Handle WriteConflict errors in fle2_contention_kill_parent.js

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.12
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Security 2023-11-13
    • 45

      In v6.0, the fle2_contention_kill_parent.js can encounter WriteConflict errors when performing an encrypted update that follows a previous killed encrypted update operation (provided that the same contention factor value is coincidentally selected).

      This is because per SERVER-70247, if an ongoing internal transaction gets cancelled by a killOp, the transaction just lingers in an idle state until later reaped by another background job. If the killed transaction has managed to write to the ESC collection, then the following transaction can potentially write the same _id value if the same contention factor is used, which causes a write conflict on the _id index.

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

              Created:
              Updated:
              Resolved: