Details
-
Bug
-
Resolution: Fixed
-
Major
-
2.1.3
-
None
-
None
Description
Is "The cluster does not support Data services" the expected error in the following situation? This is for Couchbase Server 3.0.3 and .NET Client 2.1.3
Here are the steps to reproduce:
- Configure a single node running Couchbase Server 3.0.3 (likely any version) on any OS and name the node "cbhost.domain". Use a local HOSTS file with the line (substitute valid IP):
cbhost.domain 10.17.2.241
- On a separate client Windows system running Couchbase .NET client 2.1.3, use an app.config with the following IP entry:
<add uri="http://10.17.2.241:8091/pools"></add>
- Note that the client is able to create the Cluster and Bucket objects successfully
using (var cluster = new Cluster("couchbaseClients/couchbase"))
{
using (var bucket = cluster.OpenBucket())
}
- However, on the first bucket.Insert, you will receive the exception "The cluster does not support Data services". At this point, the client is attempting to use the node name provided by the cluster vbucket map (which contains the URI of the node name, in this case, cbhost.domain which does not resolve on the client)
Expectation is that the error should give an indication that the node cannot be reached. Code looks to be here, as an example:
http://review.couchbase.org/#/c/51598/1/Src/Couchbase/Core/Buckets/CouchbaseRequestExecuter.cs