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

ClassCast Exception when using durability against memcached bucket

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.2
    • Fix Version/s: 1.1.7
    • Component/s: Core
    • Security Level: Public
    • Labels:
      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)

      1. 1.1.5-sdk.log
        14 kB
        Deepti Dawar
      2. 1.1.6-sdk.log
        17 kB
        Deepti Dawar
      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

          • Assignee:
            daschl Michael Nitschinger
            Reporter:
            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