Details
-
Improvement
-
Resolution: Fixed
-
Major
-
None
-
None
-
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.