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

txn_override.js doesn't bump the txnNumber in the log message if it has to retry the transaction multiple times in a row

    • Fully Compatible
    • ALL
    • Sharding 2018-12-17

      There is a recursive call in retryEntireTransaction in txn_override.js. If we have to retry the transaction there, we pass the old txnNumber, so the log message has the incorrect txnNumber. This can be confusing when debugging because it seems like the txnNumber is never progressing, even though it says the transaction is being retried.

      Here is an example from a recent BF.

            Assignee:
            janna.golden@mongodb.com Janna Golden
            Reporter:
            samy.lanka@mongodb.com Samyukta Lanka
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: