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

For active sessions only set transaction stats in TransactionRouter::Observer::_reportState()

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.2.1, 4.3.1
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • ALL
    • v4.2
    • Sharding 2019-08-26

      As part of constructing a currentOp entry, TransactionRouter::_reportState adds stats for its current transaction to a BSONObjBuilder. These stats include some that will have already been set for active transactions, like "type", "host", "desc" (set in CurOp::reportCurrentOpForClient(). Instead, when the TransactionRouter's session is active, it should only set the "transaction" field.

            Assignee:
            jack.mulrow@mongodb.com Jack Mulrow
            Reporter:
            jack.mulrow@mongodb.com Jack Mulrow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: