Creating mobile tombstone for existing CBS tombstone causes loop

Description

SG 2.8.1 includes to avoid creating empty document bodies when creating a mobile tombstone for a previously non-existent document.  

If the updated handling is applied to an existing, non-purged Couchbase Server tombstone that does not have a mobile xattr associated with it, Sync Gateway fails to use the cas from the existing tombstone, and so hits a cas error when writing the mobile tombstone.

The net result is Sync Gateway going into an infinite loop attempting to retry the CAS failure.

Activity

Show:

CB robot February 25, 2021 at 10:43 PM

Build sync_gateway-3.0.0-149 contains sync_gateway commit 2ff29d7 with commit message:
: Avoid infinite retry loop when creating as tombstone (#4969)

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 February 24, 2021 at 11:49 PM
Updated August 31, 2024 at 11:00 AM
Resolved February 25, 2021 at 10:33 PM
Instabug