Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-600

Replica Set monitoring bug in split brain situation

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.7
    • Affects Version/s: 2.6.3
    • Component/s: None
    • Labels:
    • Fully Compatible

      Suppose you have a Replica Set and a MongoReplicaSetClient connection to it which you don't close.

      1. At some time you get a split brain situation and a part of the Replica Set nodes become isolated from others. MongoReplicaSetClient.refresh() will remove them from its RSState and will monitor only the other part of nodes.
      2. After some time your host loses connection to the second part of nodes. Replica Set monitor will continue to monitor only the second part of nodes.
      3. And finally after some time connection to the first part of nodes resumes but to the second part not. But the Replica Set monitor continues to monitor only the second part of nodes and your connection won't work until at least one host from the second part become available.

            jesse@mongodb.com A. Jesse Jiryu Davis
            konishchev Dmitry Konishchev
            0 Vote for this issue
            2 Start watching this issue