_makeOperationContext should hold lock

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.0.0-rc0, 8.3.2
    • Affects Version/s: None
    • Component/s: None
    • None
    • Cluster Scalability
    • Fully Compatible
    • ALL
    • v8.3
    • ClusterScalability 16Mar-30Mar, ClusterScalability 30Mar-13Apr
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      SERVER-121287 introduced a _makeOperationContext helper in the donor and recipient that considers the participant's state to decide the priority of its operation. These states are generally read and written to by the participant's main thread, but the ReshardingChangeStreamsMonitor updates their states from a separate thread (recipient, donor).

      _makeOperationContext should therefore hold the mutex while reading the state.

            Assignee:
            Brett Nawrocki
            Reporter:
            Brett Nawrocki
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: