Replicator may get stuck when there is an error of "Invalid delta"

Description

During investigating , we found that the replicator would get stuck if there were error of "Invalid delta." This applies to following situations:

  1. CBL works as a pusher, and has computed delta that is rejected by the remote (SG)

  2. CBL works as puller, and has received delta it finds corrupted, unable to apply it on the base revision.

  3. CBL works as a party of P2P, or as a LocalReplicator. In this case, CBL plays both pusher and puller.

The problem described in the CBSE falls in situation (2) above.

 

Attachments

1

Activity

Show:

CB robot June 2, 2023 at 10:30 PM

Build couchbase-lite-net-3.0.12-2 contains couchbase-lite-core commit d0bdb1c with commit message:
: Replicator may get stuck when there is an error of "Invalid delta" (#1754)

CB robot June 2, 2023 at 8:25 AM

Build couchbase-lite-ios-3.0.7-20 contains couchbase-lite-core commit d0bdb1c with commit message:
: Replicator may get stuck when there is an error of "Invalid delta" (#1754)

CB robot June 1, 2023 at 8:56 PM

Build couchbase-lite-c-3.0.12-2 contains couchbase-lite-core commit d0bdb1c with commit message:
: Replicator may get stuck when there is an error of "Invalid delta" (#1754)

Jianmin Zhao April 21, 2023 at 6:32 PM

Since I cannot generate the sync error in the test, the commit does not have have the tests. I had to use the temporary code in the source to fabricate errors. The patch,

contains the temporary code and the tests.

CB robot April 21, 2023 at 4:21 PM

Build couchbase-lite-core-3.0.12-4 contains couchbase-lite-core commit d0bdb1c with commit message:
: Replicator may get stuck when there is an error of "Invalid delta" (#1754)

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

Details

Assignee

Reporter

Story Points

Components

Fix versions

Affects versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created April 20, 2023 at 9:46 PM
Updated August 31, 2024 at 10:56 AM
Resolved April 21, 2023 at 4:12 PM
Instabug