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

Panic when putting document with duplicate non-imported doc ID

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.3
    • Fix Version/s: 2.5.0
    • Component/s: SyncGateway
    • Security Level: Public
    • Labels:
      None
    • Sprint:
      CBG Sprint 18
    • Story Points:
      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

          Hide
          jacques.rascagneres Jacques Rascagneres added a comment -

          Looks like it has since been fixed and was only an issue in versions prior to iridium. I will however write a test to ensure it doesn't crop up again.

          Show
          jacques.rascagneres Jacques Rascagneres added a comment - Looks like it has since been fixed and was only an issue in versions prior to iridium. I will however write a test to ensure it doesn't crop up again.
          Hide
          James Flather James Flather added a comment -

          Do we know all affected versions? Would probably be worth ascertaining if this requires fixing in any supported versions...

          Show
          James Flather James Flather added a comment - Do we know all affected versions? Would probably be worth ascertaining if this requires fixing in any supported versions...
          Hide
          build-team Couchbase Build Team added a comment -

          Build sync_gateway-2.6.0-2 contains sync_gateway commit fe4a339 with commit message:
          CBG-282: Duplicate non-imported ID test (#4035)

          Show
          build-team Couchbase Build Team added a comment - Build sync_gateway-2.6.0-2 contains sync_gateway commit fe4a339 with commit message: CBG-282 : Duplicate non-imported ID test (#4035)
          Hide
          build-team Couchbase Build Team added a comment -

          Build sync_gateway-2.6.0-2 contains sync_gateway commit fe4a339 with commit message:
          CBG-282: Duplicate non-imported ID test (#4035)

          Show
          build-team Couchbase Build Team added a comment - Build sync_gateway-2.6.0-2 contains sync_gateway commit fe4a339 with commit message: CBG-282 : Duplicate non-imported ID test (#4035)
          Hide
          daniel.petersen Daniel Petersen added a comment -

          Release is out. Closing.

          Show
          daniel.petersen Daniel Petersen added a comment - Release is out. Closing.
          Hide
          daniel.petersen Daniel Petersen added a comment -

          needed to re-open to remove releasenote label

          Show
          daniel.petersen Daniel Petersen added a comment - needed to re-open to remove releasenote label

            People

            • Assignee:
              jacques.rascagneres Jacques Rascagneres
              Reporter:
              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

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.