Can't execute implicit retry on migrations on top of network_error_and_txn_override.js

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • ALL
    • CAR Team 2025-05-12
    • None
    • 3
    • TBD
    • None
    • None
    • None
    • None
    • None
    • None

      In SERVER-93901 we introduced a retry loop for query commands when migrations happen in the background of a test.
      This retry loop is not compatible with the functionality `wrapCRUDinTransactions` introduced by network_error_and_txn_override.js because we can skip operations after a transaction abortion.

      Imagine a scenario when the following operations are executed on the same transaction due to network_error_and_txn_override.js:
      op1: insert
      op2: insert
      op3: find
      op4: getMore

      If getMore fails with a QueryPlanKilled error, the op3 and op4 would be retried by the _runAndExhaustQueryWithRetryUponMigration loop, however op1 and op2 will get aborted and will never get retried.

            Assignee:
            Silvia Surroca
            Reporter:
            Silvia Surroca
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: