Details
-
Sub-task
-
Resolution: Done
-
Major
-
Mercury
Description
Platform: Java WebService
CBL Version: Java 2.7.0-80
SG Version: SGW 2.7.0-163
SG Config: see attachment
Steps to Reproduce:
1. Have sg config with allow conflicts with some revs_limit
2. Create docs in CBL
3. Start a continous Replicator to have SG load all the docs. Verify if the no. of docs are same in both SG and CBL.
4. Update docs in CBL and also update docs through SG with number of times more than revs_limit. check the docs after replication become idle
5. Change the revs_limit less than actual revs limit
6. Restart sg
7. update doc 1 more time and let replication become idle
Actual Result:
seeing
18:59:09.061749| [Sync]: Replicator{@6d215db2,*>,Database
,URLEndpoint
{url=wss://172.23.106.104:4984/db}] is offline, progress 0/0, error: CouchbaseLiteException
{CouchbaseLite,11001,'WebSocket connection closed by peer'}Expected Result:
replication finishes then turn idle
Logs : see attachment
Github link for the code: https://github.com/couchbaselabs/mobile-testkit/blob/feature/java-ws-testserver/testsuites/CBLTester/CBL_Functional_tests/TestSetup_FunctionalTests/test_no_conflicts_cbl.py
Jenkins job failure link:
http://uberjenkins.sc.couchbase.com:8080/job/CBLITE_Java-WS-CentOS-7-TestServer-Functional-tests/15/
Pytest Command
pytest -s --timeout 1800 --liteserv-version=2.7.0-80 --liteserv-host=172.23.96.218 --liteserv-port=8080 --xattrs --no-conflicts --enable-file-logging --delta-sync --sg-ssl -k test_no_conflicts_update_with_revs_limit --sync-gateway-version=2.7.0-163 --mode=cc --server-version=6.5.0-4912 --liteserv-platform=javaws-centos --create-db-per-test=cbl-test --use-local-testserver testsuites/CBLTester/CBL_Functional_tests/TestSetup_FunctionalTests