Uploaded image for project: 'Couchbase Java Client'
  1. Couchbase Java Client
  2. JCBC-250

ClassCast Exception when using durability against memcached bucket

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.1.7
    • 1.1.2
    • Core
    • Security Level: Public
    • None

    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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            daschl Michael Nitschinger
            perry Perry Krug
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty