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

Connection to memcached buckets fail due to lack of CouchServers support

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.1-dp3
    • Fix Version/s: 1.1-dp4
    • Component/s: Core
    • Security Level: Public
    • Labels:
      None

      Description

      java.lang.UnsupportedOperationException: No couch port for cache buckets
      at com.couchbase.client.vbucket.config.CacheConfig.getCouchServers(CacheConfig.java:152)
      at com.couchbase.client.CouchbaseClient.<init>(CouchbaseClient.java:232)
      at com.couchbase.cbc.App.main(App.java:75)

      Perhaps there's some convoluted way to make it work by creating five thousand factories, but this can be a simple check in the ctor:

      if (getVBucketConfig().getConfigType() == ConfigType.COUCHBASE)

      { ... }

      else

      { /* maybe warn here */ }

      And then of course making sure any view execution methods return appropriate error messages.

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

        Activity

        Show
        daschl Michael Nitschinger added a comment - http://review.couchbase.org/#/c/21445/

          People

          • Assignee:
            daschl Michael Nitschinger
            Reporter:
            mnunberg Mark Nunberg
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes