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

Add guardrails for accessing critical fields in topology coordinator

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Replication
    • 200

      In BF-33620 there is a race between updateTerm and getTerm. The updateTerm thread was holding the replication coordinator mutex but the getTerm thread released the mutex before calling getTerm. There is another getTerm call earlier in the function that was holding the mutex. Maybe it would be good to have a guardrail for fields like term in topology coordinator so that we are always accessing it while holding the mutex? 

            Assignee:
            Unassigned Unassigned
            Reporter:
            evelyn.wu@mongodb.com Evelyn Wu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: