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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.8.0
    • Fix Version/s: Lithium
    • Component/s: SyncGateway
    • Security Level: Public
    • Labels:
      None
    • Sprint:
      CBG Sprint 63, CBG Sprint 64, CBG Sprint 65
    • Story Points:
      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

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

            Activity

            Hide
            adamf Adam Fraser added a comment -

            Potentially related to CBG-1153

            Show
            adamf Adam Fraser added a comment - Potentially related to CBG-1153
            Hide
            James Flather James Flather added a comment -

            Tested, this has been the case since 2.0, but doesn't happen in 1.5 (because we don't seem to do anything and just return a 404).

            Show
            James Flather James Flather added a comment - Tested, this has been the case since 2.0, but doesn't happen in 1.5 (because we don't seem to do anything and just return a 404).
            Hide
            build-team Couchbase Build Team added a comment -

            Build sync_gateway-3.0.0-116 contains sg-bucket commit cb3006c with commit message:
            CBG-1200: Added new DataStoreFeature (#59)

            Show
            build-team Couchbase Build Team added a comment - Build sync_gateway-3.0.0-116 contains sg-bucket commit cb3006c with commit message: CBG-1200 : Added new DataStoreFeature (#59)
            Hide
            build-team Couchbase Build Team added a comment -

            Build sync_gateway-3.0.0-116 contains sync_gateway commit 783b3b5 with commit message:
            CBG-1200: Improve handling for newly created tombstones to prevent empty documents (#4884)

            Show
            build-team Couchbase Build Team added a comment - Build sync_gateway-3.0.0-116 contains sync_gateway commit 783b3b5 with commit message: CBG-1200 : Improve handling for newly created tombstones to prevent empty documents (#4884)
            Hide
            build-team Couchbase Build Team added a comment -

            Build sync_gateway-2.8.1-8 contains sg-bucket commit d4ee4b6 with commit message:
            [2.8.1 Backport] CBG-1200: Added new DataStoreFeature (#59) (#61)

            Show
            build-team Couchbase Build Team added a comment - Build sync_gateway-2.8.1-8 contains sg-bucket commit d4ee4b6 with commit message: [2.8.1 Backport] CBG-1200 : Added new DataStoreFeature (#59) (#61)
            Hide
            build-team Couchbase Build Team added a comment -

            Build sync_gateway-2.8.1-9 contains sync_gateway commit 41682bd with commit message:
            CBG-1200: Improve handling for newly created tombstones to prevent empty documents (#4884) (#4937)

            Show
            build-team Couchbase Build Team added a comment - Build sync_gateway-2.8.1-9 contains sync_gateway commit 41682bd with commit message: CBG-1200 : Improve handling for newly created tombstones to prevent empty documents (#4884) (#4937)

              People

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

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes

                    PagerDuty