Uploaded image for project: 'Couchbase Lite'
  1. Couchbase Lite
  2. CBL-1910

Implement the Revised Retry Logic and Heartbeat Config API

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 3.0
    • 3.0
    • iOS
    • Security Level: Public
    • None
    • Jay 47
    • 3

    Description

      The Retry Logic and Heartbeat Config API have been revised.

      Summary:

      maxAttempts (replaces maxRetries) :

      • The max attempts to connect to a remote server before deciding to stop when encountering transient errors. The initial request will also count toward the maxAttempts value.
      • Setting the value to 0 means that the default value which is 10 times for a single shot replicator and max-int times for a continuous replicator will be used. And the maxAttempts is set to 0 by default.
      • Setting the value to 1 means that the replicator will perform an initial request and if there is a transient error occurs, the replicator will stop without retrying.
      • Setting a negative value is not allowed.

       maxAttemptWaitTime (replaces maxRetryWaitTime for naming consistency with maxAttempts) :

      • The max wait time between attempts in seconds.
      • Setting the value to 0 means that the default value of 300 seconds will be used. And the maxAttemptWaitTime is set to 0 by default.
      • Setting a negative value is not allowed. 

       heartbeat (no naming change)

      • Ping interval to keep the connection between the replicator and SG in seconds.
      • Setting the value to 0 means that the default value of 300 seconds will be used. And the heartbeat is set to 0 by default.
      • Setting a negative value is not allowed.

      API Doc: https://docs.google.com/document/d/1C7qF2GipBNTAzyfOFU2QbZZM0sqzALEiCp0VUfgsImI

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Jayahari.Vavachan Jay Vavachan
            pasin Pasin Suriyentrakorn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty