Uploaded image for project: 'Couchbase Lite'
  1. Couchbase Lite
  2. CBL-787

Replicator.resetCheckpoint does not work as documented

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 2.8.0
    • 2.8.0
    • Java-Android
    • Security Level: Public
    • Blake 18, Blake 19, Blake 20
    • 5

    Description

      The method `Replicator.resetCheckpoint` claims that it can be used on a Replicator that is stopped.

      In fact it can only be used before the native companion object is (lazily) created (that happens, for instance, on a call to `getDocumentIds`)

      This used to be the same thing as being Stopped. Now that a replicator can be restarted, though, it is not.

      The following will cause an exception:

      • create a replicator
      • run it
      • wait for it to stop
      • call Replicator.resetCheckpoint

      as will

      • create a replicator
      • ask for pending document ids
      • call Replicator.resetCheckpoint

      The error message will be the standard ReplicatorNotStopped message, even though the replicator is stopped.

      Fixing this will require plumbing a new call to reset the replicator options, through the JNI

      Attachments

        Issue Links

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

          Activity

            People

              blake.meike Blake Meike
              blake.meike Blake Meike
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty