Add logging to stashing/unstashing in transaction metrics observer

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.0.0-rc1, 8.3.8
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication
    • Fully Compatible
    • ALL
    • v8.3, v8.2, v8.0
    • Repl 2026-04-13, Repl 2026-07-06
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      AF-14713 saw an invariant failure because we assume isActive is true whenever we yield from FLEMongoDResourceYielder.

      However, there is a window of time during beginOrContinue where we our state is kInProgress, but haven't unstashed the txnResources yet (which is where we set isActive = true), so stashing the resources during the yield hits this invariant. (See AF for more details on the timeline of events and code links).

      We should skip stashing resources if they were never unstashed (which is indicated by isActive = false).

      edit: we actually decided to just limit this ticket to increased logging around the invariant to get a more accurate RCA for why this is happening (see comments on AF).

            Assignee:
            Ruchitha Rajaghatta
            Reporter:
            Ruchitha Rajaghatta
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: