Fixed
Pinned fields
Click on the next to a field label to start pinning.
Details
Details
Assignee
Tor Colvin
Tor ColvinReporter
Tor Colvin
Tor ColvinIssue Impact
external
Story Points
1
Sprint
None
Fix versions
Priority
Instabug
Open Instabug
PagerDuty
PagerDuty
Sentry
Sentry
Zendesk Support
Zendesk Support
Created January 6, 2025 at 5:10 PM
Updated April 11, 2025 at 2:50 AM
Resolved January 22, 2025 at 11:59 AM
In the scenario that CBL starts a continuous pull replication and then the changes feed has an error like
ErrChannelFeed
, the changes feed will exit and the underlying blip connection will remain open. The result of this behavior is that CBL replication will remain “busy” and connected, but no changes will ever be received by the CBL client.Sync Gateway has no way to send a unsolicited message to CBL with an error condition, and does not check a message for
Error-Code
so in order to terminate the replicator.The case where
ErrChannelFeed
was observed was the following case of a timeout on the N1QL query:In order to fix this, Sync Gateway should close the blip connection in a manner that CBL will restart the replicator. The plan is to use a cancelation context similar to . A cancellable context with a parent of
DatabaseContext.CancelContext
will be placed onBlipSyncContext
and can be cancelled when this scenario is hit. This will shut down the blip connection and CBL replicator will retry the connection automatically.