deprecated resetCheckPoint() doesn't throw exception when replicator is active

Description

Mandatory:

  • CBL version: 2.8.0-178 / SG Version: 2.7.0-166

  • SG config:

  • Steps to Reproduce:

  1. create cbl db docs

  2. start replicator, wait replicator finishes replication turns becomes idle

  3. call resetCheckPoint() API

  • Actual Result:

no exception, checkpoint gets reset

  • Expected Result:

according to the design spec, "#3 If the resetCheckpoint() is called while the replicator is not stopped, an exception will be thrown." this deprecated API resetCheckPoint shoudl throw an exception because replicator is still active

  • Logs : in attachments

  • Github link for the code:

https://github.com/couchbaselabs/mobile-testkit/blob/master/testsuites/CBLTester/CBL_Functional_tests/TestSetup_FunctionalTests/test_replication.py#L2952

  • Jenkins job failure link:

http://uberjenkins.sc.couchbase.com:8080/job/CBLITE_Android-Listener-TestServer-Functional-tests/1983/testReport/testsuites.CBLTester.CBL_Functional_tests.TestSetup_FunctionalTests/test_replication/test_resetCheckpointFailure/

  • Pytest Command

pytest --timeout 1800 --liteserv-version=2.8.0 --liteserv-host=192.168.33.108 --liteserv-port=8080 --no-conflicts --enable-file-logging --delta-sync --sg-ssl --sync-gateway-version=2.7.0-166 --mode=cc --server-version=7.0.0-2083 --liteserv-platform=android --create-db-per-test=cbl-test testsuites/CBLTester/CBL_Functional_tests -s -rsx --use-local-testserver -k test_resetCheckpointFailure

  • What is the last build this test passed: 2.8.0-158

Attachments

2

Activity

Show:

Eunice‌ Huang June 3, 2020 at 6:39 AM

2.8.0-191 has been verified and passed

Eunice‌ Huang June 3, 2020 at 6:39 AM

verified with build 191

Blake Meike May 27, 2020 at 7:52 PM

FIxed in couchbase-lite-java-ee-root: b0c65550f0613bafc57d3ce

CB robot May 27, 2020 at 7:42 PM

Build couchbase-lite-java-2.8.0-168 contains couchbase-lite-java-ee-root commit b0c6555 with commit message:
: Make sure to throw an exception on a call to resetCheckpoint unless the replicator is STOPPED

CB robot May 27, 2020 at 7:42 PM

Build couchbase-lite-java-2.8.0-168 contains couchbase-lite-java-common commit 92bb44c with commit message:
: Make sure to throw an exception on a call to resetCheckpoint unless the replicator is STOPPED

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Labels

Components

Fix versions

Affects versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created May 27, 2020 at 5:20 AM
Updated October 2, 2020 at 10:25 PM
Resolved October 2, 2020 at 9:21 PM
Instabug