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

Replace catchupTimeoutMillis with boolean field

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

      catchupTimeoutMillis was introduced in order to allow Pv1 to preserve uncommitted writes in the event of an election. In 3.6, the only values that provide any deterministic guarantees for this field are -1 or 0. So why isn't it a boolean?

      Having it as a timeout value is confusing and encourages users to do the incorrect thing as it is not obvious that it is incorrect. If you wish to abort after some fuzzy period of time you should set the catchupTakeoverTimeoutMillis or manually abort using replSetAbortPrimaryCatchUp or stepDown.

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            osmar.olivo Osmar Olivo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: