Uploaded image for project: 'Couchbase Gateway'
  1. Couchbase Gateway
  2. CBG-1153

Delete of document with body {} doesn't result in CBS tombstone

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.0
    • None
    • SyncGateway
    • Security Level: Public
    • None
    • CBG Sprint 63, CBG Sprint 64, CBG Sprint 65
    • 5

    Description

      If a document with body `{}` is deleted under shared bucket access, it doesn't result in a Couchbase Server tombstone.  The empty body comparison here doesn't consider the previous body as non-empty, and so doesn't trigger the body delete subdoc operation.  

      The document is a Sync Gateway tombstone, and so will be replicated properly as a delete, but the document won't be purged from the server based on the metadata purge interval. 

      Needs review of the motivation for the original change from length zero to length two - presumably there are scenarios where Sync Gateway is converting documents with empty bodies to {} during read, and this was to handle that scenario.  May require a more significant refactor to otherwise mark empty bodies on read.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              jacques.rascagneres Jacques Rascagneres
              adamf Adam Fraser
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty