Avoid retrying on duplicate key error for upserts in multidocument transactions

XMLWordPrintableJSON

    • Query Execution
    • Minor Change
    • ALL
    • v8.0, v7.0, v6.0
    • 200
    • None
    • 3
    • 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).

            Assignee:
            Evan Bergeron
            Reporter:
            Wei Hu
            Votes:
            0 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated:
              Resolved: