Description
Apparently trying to use these operations:
CouchbaseClient.add(String key, int exp, String value, PersistTo req, ReplicateTo rep)
Against a memcached bucket causes an exception even if "req" and "rep" are set to 0. From the user's perspective, they expect this to work. Is it a major undertaking to make the classes compatible from the client side, independent of the bucket types and then let the operation succeed/fail when it can or can't?
java.lang.ClassCastException: com.couchbase.client.CouchbaseMemcachedConnection cannot be cast to com.couchbase.client.CouchbaseConnection
at com.couchbase.client.CouchbaseClient.observePoll(CouchbaseClient.java:1708)
at com.couchbase.client.CouchbaseClient.add(CouchbaseClient.java:1293)
Attachments
For Gerrit Dashboard: JCBC-250 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
26541,2 | JCBC-250: Fail Fast when Observe with Memcached Bucket is used. | master | couchbase-java-client | Status: MERGED | +2 | +1 |