Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-10223

The documentation for AbstractReplicatorConfiguration.enabledAutoPurge says "Default is enabled." but it is disabled.

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • None
    • None
    • sync-gateway
    • 1

    Description

      When creating a Couchbase replicator with configuration options, The documentation for AbstractReplicatorConfiguration.enabledAutoPurge says "Default is enabled.", however when configuration is created using ReplicatorConfigurationFactory.create() it defaults to disabled.

      This caused many hours of pain as we assumed this option was enabled, and spent a great deal of time and effort looking at other possible causes and solutions, such as update to CB gateway 3.0.

      Some examples listed below:

      Code example
      ConfirgurationFactories.kt
       
      this?.autoPurgeEnable 
      this is null when create() is called on ReplicatorConfigurationFactory so this?.isAutoPurgeEnabled returns null and it coalesces to false

      Documentation instance 1
      https://docs.couchbase.com/couchbase-lite/current/android/replication.html#anchor-auto-purge-on-revoke
       Documentation instance 2 - Configuration Summary
      https://docs.couchbase.com/couchbase-lite/current/android/replication.html#configuration-summary

      States as a default of true.
       
      Also the notes example ordered list steps are a bit out of order.

      Attachments

        Issue Links

          Activity

            People

              hakim.cassimally Hakim Cassimally
              anthony.patterson Anthony Patterson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                PagerDuty