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

Create conflict throws 400 error

    XMLWordPrintable

Details

    • CBG Sprint 25, CBG Sprint 26
    • 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

          People

            ben.brooks Ben Brooks
            sridevi.saragadam Sridevi Saragadam (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty