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

Fix retryable write condition for WWSKWID

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Cluster Scalability
    • Fully Compatible
    • ALL

      The condition to enable WWSKWID is incorrect in CollectionRoutingInfoTargeter::targetUpdate and CollectionRoutingInfoTargeter::targetDelete with opCtx->isRetryableWrite() && !TransactionRouter::get(opCtx). This condition also includes retryable internal transactions without a checked-out session to be run. It should be replaced with opCtx->getTxnNumber() && !opCtx->inMultiDocumentTransaction() which guarantees retryable writes condition without association with any kind of transaction.

            Assignee:
            abdul.qadeer@mongodb.com Abdul Qadeer
            Reporter:
            abdul.qadeer@mongodb.com Abdul Qadeer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: