Don't transition to STARTUP2 until _initAndListen finishes

XMLWordPrintableJSON

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

      Initial sync runs in STARTUP2, and if it takes the Global lock and doesn't release it, then it could livelock with taking the Global lock in _initAndListen. It may be possible to stay in STARTUP until _initAndListen finishes.

      This may be a theoretical problem only as we haven't tried to reproduce it.

      h/t suganthi.mani@mongodb.com for pointing this out

            Assignee:
            Unassigned
            Reporter:
            Brad Cater
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: