CurOp::updateStorageMetricsOnRecoveryUnitChange races with CurOp::getOperationStorageMetrics

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution
    • Fully Compatible
    • ALL
    • Execution Team 2025-01-06, Execution Team 2025-01-20
    • 0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      updateStorageMetricsOnRecoveryUnitChange is called in the transaction participant before the recovery unit is reset. getOperationStorageMetrics reads the same storage metrics that gets updated.

      We can probably avoid this race similarly to SERVER-98926 by using a client lock.

            Assignee:
            Shin Yee Tan
            Reporter:
            Shin Yee Tan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: