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

Replace catchupTimeoutMillis with boolean field

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Replication
    • None
    • Replication

    Description

      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.

      Attachments

        Activity

          People

            backlog-server-repl Backlog - Replication Team
            osmar.olivo Osmar Olivo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: