Remove redundant _recipientCtx.getState() read in resharding recipient change-streams-monitor completion path

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Cluster Scalability
    • Fully Compatible
    • ALL
    • ClusterScalability 17Aug-31Aug
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Overview

      There is a data race (found via TSAN, BF-45859) between an unguarded read of _recipientCtx.getState() and the mutex-guarded write to _recipientCtx in ReshardingRecipientService::RecipientStateMachine. However, the read is itself redundant and can be safely removed.

      Background

      see BF-45859.

      Scope of Work

      • src/mongo/db/s/resharding/resharding_recipient_service.cpp — remove read on _recipientCtx.getState() 

            Assignee:
            Anja Kalaba
            Reporter:
            Anja Kalaba
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: