Fix data race at VectorClockMongoDTest reading / writing the serverGlobalParams.clusterRole

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • CAR Team 2024-02-19
    • 172
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      There is a data race when we read the serverGlobalParams.clusterRole at gossipIn at the same time we are setting the serverGlobalParams.clusterRole at the setUp of VectorClockMongoDTest fixture for unit tests.

      This is a data race that can be reproduced only in testing, not in a real environment.

      The goal of this ticket is to fix this data race.

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

              Created:
              Updated:
              Resolved: