Fix locking around FCBIS and storageGlobalParams.dbPath

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Trivial - P5
    • None
    • Affects Version/s: None
    • Component/s: None
    • Replication
    • 134
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      File Copy Based Initial Sync currently changes storageGlobalParams.dbPath while holding a global X lock. This parameter is normally read without locking, so it can be read while it is being written resulting in a data race. We should fix this, either by

      1) Having FCBIS not change storageGlobalParams.dbPath

      2) Outside server startup, requiring any global lock to be held while accessing storageGlobalParams.dbPath and formalizing that with an accessor requiring an opCtx.

      3) Locking around it specifically or making it a pointer and using an atomic swap to set it.

            Assignee:
            [DO NOT USE] Backlog - Replication Team
            Reporter:
            Matthew Russotto
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: