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

Avoid retrying on duplicate key error for upserts in multidocument transactions

    • Query Execution
    • Minor Change
    • ALL
    • v8.0, v7.0, v6.0
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When we retry the reproducer of SERVER-95523 in a transaction, the write succeeds on a second try violating the unique index. Understand the reason even though _opCtx->_ruState got set to RecoveryUnitState::kFailedUnitOfWork (and crashes the server in commit).

        1. graphviz (27).png
          94 kB
          Evan Bergeron

            Assignee:
            evan.bergeron@mongodb.com Evan Bergeron
            Reporter:
            wei.hu@mongodb.com Wei Hu
            Votes:
            0 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None