Implement the Revised Retry Logic and Heartbeat Config API

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

Activity

Show:

CB robot May 26, 2021 at 3:43 AM

Build couchbase-lite-ios-3.0.0-162 contains couchbase-lite-ios commit 0d3463d with commit message:
: maxAttempts, maxAttemptWaitTime, heartBeat (#2840)

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Story Points

Components

Sprint

Fix versions

Affects versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created May 5, 2021 at 4:44 PM
Updated August 20, 2021 at 10:54 AM
Resolved August 20, 2021 at 10:54 AM
Instabug