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

Chaining using syncFrom should warn when circular secondary chain is attempted

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

      3 members in a replica set.
      Go to secondary1 , rs.syncFrom('secondary2')
      Go to secondary 2, rs.syncFrom('secondary1')
      Result: replica set now configured such that secondaries sync from each other, none of them from the primary.

      This situation is detectable in the status, and at least should produce a warning when attempted "sync target specified appears circular".

      Since RS and elections may break this circularity, it may be allowed, but to an unsuspecting user this may cause confusion since the secondaries will "fail" to update.

        1. syncFromLoop.js
          3 kB
          Scott Hernandez

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            nuknuksan nuk nuk san
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: