Details
-
Task
-
Resolution: Fixed
-
Critical
-
5.0.0
-
KV Spock Beta
Description
When a document is deleted through Sync Gateway, we need to delete the document and update the mobile system xattr.
Currently we can't do this in a single operation - the subdoc MutateIn doesn't support document delete. When Sync Gateway does this in two operations (delete the doc, then update the xattr), there are two issues with a potential performance impact:
- Delete processing itself (issuing two KV ops instead of one)
- When Sync Gateway's initial delete comes back over the DCP feed, it looks like an SDK delete (the cas doesn't match the xattr cas), triggering Sync Gateway's import processing. This import processing will eventually no-op when it gets a cas error attempting to re-update the xattr, so it isn't a functional issue, but it would be preferable to avoid this processing overhead altogether.
Attachments
Issue Links
- blocks
-
MB-23864 cbbackupmgr restore with --force-updates flag does not work with xattrs
- Closed