Description
The following configuration will always result in the in-memory configuration having UseEnhancedDurability = false:
<couchbase enableConfigHeartBeat="false"> |
<servers> |
<add uri="http://localhost:8091"></add> |
</servers> |
<buckets> |
<add name="beer-sample" useEnhancedDurability="true"></add> |
</buckets> |
</couchbase> |
If you include a connectcionPool section within the bucket, then the setting will apply:
<couchbase enableConfigHeartBeat="false"> |
<servers> |
<add uri="http://localhost:8091"></add> |
</servers> |
<buckets> |
<add name="beer-sample" useEnhancedDurability="true"> |
<connectionPool name="default" /> |
</add> |
</buckets> |
</couchbase> |
The reason is that without a connectionPool section, the default connectionPool is used instead. This connectionPool always has UseEnhancedDurability = false. This overrides the previously loaded value of true for the bucket.
Attachments
Issue Links
- relates to
-
NCBC-1136 Regression - MutationToken are not set when UseEnhancedDurabity is true
- Resolved
For Gerrit Dashboard: NCBC-1120 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
64338,5 | NCBC-1120: Ensure UseSsl and UseEnhancedDurability are overridden when set | master | couchbase-net-client | Status: MERGED | +2 | +1 |
64791,3 | NCBC-1136: MutationTokens are not set when UseEnhancedDurabity is true | master | couchbase-net-client | Status: MERGED | +2 | +1 |