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

Create conflict throws 400 error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.5.0, 2.6.0
    • Fix Version/s: 2.6.0, 2.5.1
    • Component/s: SyncGateway
    • Security Level: Public
    • Sprint:
      CBG Sprint 25, CBG Sprint 26
    • Story Points:
      5

      Description

      Steps to reproduce:

      1. Start sync gateway with delta sync on , make sure no conflicts is not enabled (allow_conflicts=true)
      2. Create docs 
      3. update docs few times
      4. Create a conflict PUT http://192.168.33.11:4984/db/sg_docs_0?new_edits=false 

      Expected :

         1. Conflict should be successful

      Actual:

          Fails with 400 error

       Error : HTTP: #2006:     --> 400 Missing digest in stub attachment "e6f633e3-5ea1-4e08-82c6-1b0df52a8a8b.png"  (2.7 ms)

       

      SGW logs:

      conflict-error.zip

      SGW config: 

      {
          "interface":":4984",
          "adminInterface": "0.0.0.0:4985",
          "maxIncomingConnections": 0,
          "maxCouchbaseConnections": 16,
          "maxFileDescriptors": 90000,
          "compressResponses": false,
          "logging": {"debug": {"enabled": true} },
          "databases":{
              "db":{
                  "import_docs": "continuous",
                  "enable_shared_bucket_access": true,
                  "num_index_replicas": 0,
                  "username": "data-bucket",
                  "password": "password",
                  "delta_sync": { "enabled": true},
                  "rev_cache_size": 1000,
                  "server":"http://192.168.33.10:8091",
                  "bucket":"data-bucket"
              }
          }
      }
      

       

      NOTE: It fails only with delta sync on

       

      Test is : test_migrate_conflicts_to_noConflicts

        Attachments

        1. conflict-error.zip
          11.99 MB
        2. sg-4984-1
          8.88 MB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

          Hide
          build-team Couchbase Build Team added a comment -

          Build sync_gateway-2.6.0-115 contains sync_gateway commit 36fe502 with commit message:
          CBG-424 - Stamp _attachments into delta+xattr body backup (#4189)

          Show
          build-team Couchbase Build Team added a comment - Build sync_gateway-2.6.0-115 contains sync_gateway commit 36fe502 with commit message: CBG-424 - Stamp _attachments into delta+xattr body backup (#4189)
          Hide
          build-team Couchbase Build Team added a comment -

          Build sync_gateway-2.6.0-115 contains sync_gateway commit 36fe502 with commit message:
          CBG-424 - Stamp _attachments into delta+xattr body backup (#4189)

          Show
          build-team Couchbase Build Team added a comment - Build sync_gateway-2.6.0-115 contains sync_gateway commit 36fe502 with commit message: CBG-424 - Stamp _attachments into delta+xattr body backup (#4189)
          Hide
          build-team Couchbase Build Team added a comment -

          Build sync_gateway-2.5.1-11 contains sync_gateway commit 41ed4f9 with commit message:
          Backport CBG-424 - Stamp _attachments into delta+xattr body backup (#4193)

          Show
          build-team Couchbase Build Team added a comment - Build sync_gateway-2.5.1-11 contains sync_gateway commit 41ed4f9 with commit message: Backport CBG-424 - Stamp _attachments into delta+xattr body backup (#4193)
          Hide
          build-team Couchbase Build Team added a comment -

          Build sync_gateway-2.5.1-11 contains sync_gateway commit 41ed4f9 with commit message:
          Backport CBG-424 - Stamp _attachments into delta+xattr body backup (#4193)

          Show
          build-team Couchbase Build Team added a comment - Build sync_gateway-2.5.1-11 contains sync_gateway commit 41ed4f9 with commit message: Backport CBG-424 - Stamp _attachments into delta+xattr body backup (#4193)
          Hide
          build-team Couchbase Build Team added a comment -

          Build sync_gateway-2.5.1-11 contains sync_gateway commit 41ed4f9 with commit message:
          Backport CBG-424 - Stamp _attachments into delta+xattr body backup (#4193)

          Show
          build-team Couchbase Build Team added a comment - Build sync_gateway-2.5.1-11 contains sync_gateway commit 41ed4f9 with commit message: Backport CBG-424 - Stamp _attachments into delta+xattr body backup (#4193)

            People

            • Assignee:
              ben.brooks Ben Brooks
              Reporter:
              sridevi.saragadam Sridevi Saragadam
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes

                  PagerDuty

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