Handle WriteConflict errors in fle2_contention_kill_parent.js

XMLWordPrintableJSON

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

      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
              Reporter:
              Erwin Pe
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: