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

Do not convert StaleConfig for updateMany in a transaction to QueryPlanKilled

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: 8.0.0-rc0
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • v8.0
    • CAR Team 2024-08-19, CAR Team 2024-09-02
    • 0

      SERVER-91465 made the write path on mongod convert StaleConfig for an updateMany that not is run as a retryable write to QueryPlanKilled to prevent mongos from retrying the write (here or here). As discussed in BF-34413, mongod shouldn't convert StaleConfig to QueryPlanKilled if the write is run in a transaction since it should be safe for the external client to retry after the transaction is (implicitly) aborted. Failing with QueryPlanKilled instead StaleConfig causes the transaction to not have a TransientTransactionError, therefore it's not considered retryable. 

            Assignee:
            aitor.esteve@mongodb.com Aitor Esteve Alvarado
            Reporter:
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: