You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix check_doc_in_cbs to query tombstones via XATTRs
The previous implementation used META().deleted which does not exist
in Couchbase N1QL. Tombstones cannot be queried directly via standard
N1QL queries.
With enable_shared_bucket_access: true, Sync Gateway stores metadata
in extended attributes (XATTRs). The _sync xattr contains the deleted
status and other sync metadata.
Changes:
- Query META().xattrs._sync.deleted instead of non-existent META().deleted
- Use USE KEYS syntax for direct document lookup
- Parse and display tombstone status clearly (TOMBSTONE vs LIVE document)
- Improve output messages to distinguish between purged vs existing docs
This fix enables the tests to properly detect tombstones in CBS and
verify whether they persist or get purged after compaction.
References:
- Sync Gateway docs on shared bucket access and tombstones
- Couchbase N1QL docs on XATTRs querying
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
0 commit comments