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

Race condition in SyncSourceResolver shutdown

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

      shutdown() can be called between the times that a callback starts and the point when it schedules more work. In particular it can happen before _scheduleFetcher() acquires its mutex so it needs to check for shutdown.

      Also, every call to _isShuttingDown() is fishy since shutdown() can be called as soon as it returns.

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: