Details
-
Bug
-
Resolution: Not a Bug
-
Major
-
2.6.0
-
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 :
- 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:
Jenkins failure:
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