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

        1. Screen Shot 2022-07-06 at 10.03.52 am.png
          223 kB
          Anthony Patterson
        2. Screen Shot 2022-07-06 at 10.51.13 am.png
          159 kB
          Anthony Patterson
        3. Screen Shot 2022-07-06 at 10.53.38 am.png
          156 kB
          Anthony Patterson
        4. Screen Shot 2022-07-06 at 10.53.57 am.png
          131 kB
          Anthony Patterson
        5. Screen Shot 2022-07-06 at 10.59.07 am.png
          22 kB
          Anthony Patterson

        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