Resizing of _nodes and updating _master is not atomic in ReplicaSetMonitor

XMLWordPrintableJSON

    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      _nodes is the data structure for storing the replica node members of a replica set inside ReplicaSetMonitor and _master is used to store the index that points to the last known primary. The updates done on these two data structure is never atomic and the this is an issue especially when the _nodes shrinks and the _master points to the last element of _nodes.

              Assignee:
              Randolph Tan
              Reporter:
              Randolph Tan
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: