Only update sessions with a transaction number

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.5.12
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • ALL
    • Sharding 2017-08-21
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      There are a few places in op_observer_impl.cpp and oplog.cpp that call

      {set,get}

      LastWriteOptimeTs or saveTxnProgress if a session exists on the operation context, but they should instead check the operation context has a transaction number, because the session's state isn't loaded without one.

      SERVER-30281 adds invariants that _txnRecord has been set when some of these methods are called, so they will start to fail in the fuzzer.

            Assignee:
            Jack Mulrow
            Reporter:
            Jack Mulrow
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: