Delinquency stats are inaccurate for operations with children (e.g. bulk-write)

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • CAR Team 2025-12-22
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Delinquency stats are accumulated into the TicketingSystem at the end of each CurOp. However, some operations share the same opCtx (where the ExecutionAdmissionContext, and therefore the delinquency stats, reside) while having different nested levels (child CurOps).

      Each time one of these child operations finishes, it calls CurOp::completeAndLogOperation, which increments the totalized delinquency stats.

      This is incorrect — the stats should be accumulated only once, at the end of the entire operation, meaning only the top-level CurOp should contribute to the totalized delinquency.

            Assignee:
            Pol Pinol
            Reporter:
            Pol Pinol
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: