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

Handling errors due to stepdown correctly for internal transaction api

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Cluster Scalability
    • ALL
    • Sharding NYC 2023-08-21, Sharding NYC 2023-09-04, Sharding NYC 2023-09-18, Sharding NYC 2023-10-02, Sharding NYC 2023-10-16, Sharding NYC 2023-10-30, Cluster Scalability 2023-11-13, Cluster Scalability 2023-11-27
    • 5

      We have seen errors from operations using internal transaction api during stepdowns like

      Attempted to run 'update' as a retryable write with session idbaa46b88-bdb2-4ca6-8b6a-7b60dce7e840 - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= -  -  and transaction number 13 but the active transaction number on the session is 12 

      From a discussion with Jack:

      "Transactions can fail with certain errors like because of stepdowns, but they should be considered “transient errors” and the txn API should retry automatically on them. I think the problem is that particular error isn’t considered transient since we’re unstashing as a retryable write, which feels wrong."

            Assignee:
            jack.mulrow@mongodb.com Jack Mulrow
            Reporter:
            yuhong.zhang@mongodb.com Yuhong Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: