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

Panic when putting document with duplicate non-imported doc ID

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.5.0
    • 2.1.3
    • SyncGateway
    • Security Level: Public
    • None
    • CBG Sprint 18
    • 3

    Description

      When attempting to add a document through sync gateway when a non-imported document with a matching ID already exists in Couchbase Server a panic occurs. Sync Gateway recovers from this panic and continues to operate, however, this should be fixed and instead return a document conflict error.

      Reproduction steps:

      1. Start an SG instance with import disabled and connect to CB Server.
      2. Create a document in Couchbase Server, eg. ID 'test'.
      3. Attempt to PUT a document via Sync Gateway with ID 'test'.
      4. Sync Gateway will fail to respond to the PUT request and will panic.

      Attachments

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

        Activity

          People

            jacques.rascagneres Jacques Rascagneres
            jacques.rascagneres Jacques Rascagneres
            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