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

Cobalt - cache enhancements- 404 error while requesting doc from the second sgw node

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Major
    • 2.6.0
    • 2.6.0
    • SyncGateway
    • Security Level: Public
    • None
    • High

    Description

      SGW version : SGW - 2.6.0-117 - all cobalt builds

      With rev cache size disabled on sgw config

      SGW config : 

      {
          "interface":":4984",
          "adminInterface": "0.0.0.0:4985",
          "maxIncomingConnections": 0,
          "maxCouchbaseConnections": 16,
          "maxFileDescriptors": 90000,
          "compressResponses": false,
       
       
       
       
          "logging": {"debug": {"enabled": true} },
          "databases":{
              "db1":{
                  "enable_shared_bucket_access": true,
       
       
                  "use_views": true,
       
       
       
       
                  "cache": {
                      "rev_cache": {
                        "size": 0
                      }
                  },
                  "import_backup_old_rev": true,
                  "server":"couchbases://192.168.33.10:11207",
                  "bucket":"data-bucket-1",
                  "username":"data-bucket-1",
                  "password": "password"
              },
              "db2":{
                  "enable_shared_bucket_access": true,
                  "use_views": true,
                  "cache": {
                      "rev_cache": {
                        "size": 0
                      }
                  },
                  "import_backup_old_rev": true,
                  "server":"couchbases://192.168.33.10:11207",
                  "bucket":"data-bucket-2",
                  "username":"data-bucket-2",
                  "password": "password"
              }
          }
      }
      

      Steps to reproduce :

      1. 

      1.Run two Sync Gateway nodes

            2.Both with enable_shared_bucket_access

            3.Node A with import_docs:continuous

            4.Write a document to the bucket via SDK

            5.Read document via SG from node A to get rev-id for revision 1

            6.Update the document via SDK

            7.Read the update of the document from node A

            8.Request revision 1 of the document from node B

      Actual :

      1. Getting 404 error at Step 8. doc is not available for node B

      Expected:

      Doc should be accessible from node B

       

      Test code in github:

      https://github.com/couchbaselabs/mobile-testkit/blob/master/testsuites/syncgateway/functional/topology_specific_tests/multiple_sync_gateways/test_sg_replicate.py#L508

      Jenkins failure:

      http://uberjenkins.sc.couchbase.com:8080/job/cen7-sync-gateway-functional-tests-topology-specific-cc-converg/1057/testReport/testsuites.syncgateway.functional.topology_specific_tests.multiple_sync_gateways/test_sg_replicate/test_sdk_update_with_changes_request/

       

      command to run:

      pytest -s -rsx --server-ssl --xattrs --use-views --mode=cc --server-version=6.0.2-2407 --sync-gateway-version=2.6.0-117 testsuites/syncgateway/functional/topology_specific_tests/ -k test_sdk_update_with_changes_request

      SGcollect on sgw 2 :  sdkupdates-sg1.zip

      SGcollect on sgw 2 : sdkUpdates-sg2.zip

       

       

       

      Attachments

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

        Activity

          People

            adamf Adam Fraser
            sridevi.saragadam Sridevi Saragadam (Inactive)
            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