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

Calling DELETE on a non-existent document creates a tombstone with empty body

    XMLWordPrintable

Details

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

    Description

      Tested version : 2.8.0. Have not tested in previous versions to see if regression. Shared bucket access enabled

      Repro : 
      call DELETE on a non-existent  document via the REST API
      a document with empty body is "created"with a tombstoned flag set but there is no _deleted: true set  (This flag is set if I call DELETE on an existing document)
      I cannot do a GET via REST API on doc, returns 404 as expected. 
       
      Expected: I'd expect  the DELETE call just be a noop when there is no document.

      Related issue-  why are tombstones getting created with a body ?

       

      On the related issue, maybe worthwhile following up on this forum post where the user is seeing empty body tombstones (but documents supposedly existed) https://forums.couchbase.com/t/strange-sync-issue-what-could-have-happened/28386/3

       

       

       

      Attachments

        Issue Links

          Activity

            People

              jacques.rascagneres Jacques Rascagneres
              priya.rajagopal Priya Rajagopal
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                PagerDuty