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

stale_config_error_for_direct_shard_operation.js: transaction in `withRetryOnTransientTxnError` cannot be retried

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • CAR Team 2024-10-14, CAR Team 2024-10-28
    • 200

      The test stale_config_error_for_direct_shard_operation.js expects to run insert operations on a node without routing information by forcing a stepup of a secondary. The test runs inside a withRetryOnTransientTxnError block. If the function is retried due to a transient error, the second time around a new primary would step up, which can be the original primary, which has updated routing information, breaking the expectations of the test.

            Assignee:
            aitor.esteve@mongodb.com Aitor Esteve Alvarado
            Reporter:
            aitor.esteve@mongodb.com Aitor Esteve Alvarado
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: