Uploaded image for project: 'Couchbase Mobile'
  1. Couchbase Mobile
  2. CM-508 Initiatives : Get 100% pass rate for Android and java - phase II
  3. CM-333

test_no_conflicts_update_with_revs_limit failed while replicating - WebSocket connection closed by peer

    XMLWordPrintable

Details

    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

      {@6f035961, name='cbl-test1576810487.54'}

      ,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

      Attachments

        1. logs_1576810487.zip
          2.23 MB
        2. sg_logs.zip
          88 kB
        3. sync_gateway.json
          0.8 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            eunice.huang Eunice Huang (Inactive)
            eunice.huang Eunice Huang (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