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

CurOp::updateStorageMetricsOnRecoveryUnitChange races with CurOp::getOperationStorageMetrics

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution
    • ALL
    • Execution Team 2025-01-06, Execution Team 2025-01-20
    • 0

      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:
            shinyee.tan@mongodb.com Shin Yee Tan
            Reporter:
            shinyee.tan@mongodb.com Shin Yee Tan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: