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

Ensure _donorOplogBuffer is always accessed under mutex

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Server Serverless 2022-11-28, Server Serverless 2022-12-12, Server Serverless 2022-12-26, Server Serverless 2023-01-09, Server Serverless 2023-01-23, Server Serverless 2023-02-06, Server Serverless 2023-02-20, Server Serverless 2023-03-06, Server Serverless 2023-03-20, Server Serverless 2023-04-03, Server Serverless 2023-04-17

      see https://github.com/10gen/mongo/blob/1301f35e5dcb08e55d79c7213cc48165c2b49156/src/mongo/db/repl/tenant_migration_recipient_service.cpp#L1834

      although this is technically safe right now (nothing concurrently accesses the buffer), _donorOplogBuffer is marked with (M) signifying that it must be accessed while holding a mutex. we should clean this up and make this explicit.

      also investigate other properties where this might be the case.

            Assignee:
            christopher.caplinger@mongodb.com Christopher Caplinger
            Reporter:
            christopher.caplinger@mongodb.com Christopher Caplinger
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: