Details
-
Improvement
-
Resolution: Fixed
-
Major
-
2.0.0
-
None
-
None
Description
For now, ClusterInfo can be obtained via Cluster.Info(). This is problematic since underneath it uses the ConfigurationProvider to obtain the data, and only HttpStreamingProvider actually retrieves it.
So if CarrierPublicationProvider is used, cluster info is in effect unavailable.
Furthermore, this path is used because the REST endpoint that provides the configuration is password-protected.
The only sureproof way of getting cluster info, without dependency to the configuration provider used, is probably to put the API at the ClusterManager's level (since accessing the manager requires the user to authenticate). There's already an ClusterInfo method here returning IResult<Pools>, that should be replaced with IResult<ClusterInfo>.
Attachments
Issue Links
- relates to
-
NCBC-754 Test ClusterControllerTests.ShouldLoadConfigInfoFromHttpProvider is failing and does not following naming conventions
- Resolved
For Gerrit Dashboard: NCBC-784 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
45215,2 | NCBC-784: get ClusterInfo via ClusterManager | master | couchbase-net-client | Status: ABANDONED | -2 | 0 |
45231,2 | NCBC-784: get ClusterInfo via ClusterManager | master | couchbase-net-client | Status: MERGED | +2 | +1 |