Fixed
Pinned fields
Click on the next to a field label to start pinning.
Details
Assignee
Gregory Newman-SmithGregory Newman-SmithReporter
Adam FraserAdam FraserLabels
Story Points
5Components
Sprint
NoneFix versions
Priority
MajorInstabug
Open Instabug
Details
Details
Assignee
Gregory Newman-Smith
Gregory Newman-SmithReporter
Adam Fraser
Adam FraserLabels
Story Points
5
Components
Sprint
None
Fix versions
Priority
Instabug
Open Instabug
PagerDuty
PagerDuty
PagerDuty
Sentry
Sentry
Sentry
Zendesk Support
Zendesk Support
Zendesk Support
Created March 15, 2024 at 4:15 PM
Updated February 25, 2025 at 7:02 PM
Resolved August 15, 2024 at 1:34 PM
The sequence allocator assumes that the next allocated sequence is always going to be larger than the previously seen sequence. There are a few scenarios where _sync:seq could be rolled back on the server:
vbucket failover/rollback
incorrect migration of data into the bucket (XDCR, backup/restore)
If _sync:seq is rolled back while Sync Gateway is running, the sequence allocator has the ability to detect this and restore _sync:seq to a value greater than the last allocated sequence on the node.
The solution needs to consider the case where multiple nodes detect this rollback concurrently.