Details
-
Improvement
-
Resolution: Fixed
-
Major
-
None
-
None
-
None
-
1
Description
Bucket.defaultCollection() behaves differently from Bucket.scope("_default").collection("_default").
defaultCollection() does not refresh the collection map. AsyncScope.collection() does attempt to refresh the collection map, even for the default collection. When running against Couchbase Server prior to 7.0, This results in warnings in the log about failed manifest update requests.
The workaround is to call `defaultCollection()` instead of `scope("_default").collection("_default")`, but it would be nice if users didn't have to do this.
Attachments
For Gerrit Dashboard: JCBC-1666 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
132562,2 | JCBC-1666 AsyncScope.collection() refreshes collection map for default collection | colossus | couchbase-jvm-clients | Status: MERGED | +2 | +1 |
132690,2 | JCBC-1666 AsyncScope.collection() refreshes collection map for default collection | master | couchbase-jvm-clients | Status: MERGED | +2 | +1 |
166027,2 | Gardening: Remove workaround for JCBC-1666 | master | couchbase-elasticsearch-connector | Status: MERGED | +2 | +1 |