Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Server 2.0

Flush on the GUI works but not from spy.memcached

3 replies [Last post]
  • Login or register to post comments
Thu, 12/20/2012 - 13:14
ehlerst
Offline
Joined: 09/24/2012
Groups:

Please assist or we will not be able to upgrade to 2.0

And yes i know it is against recommended practice to do a flush.

Java code that invokes flush from spymemcached (worked with 1.8.x and spy.memcached 2.7.3)
MemcachedClientIF cacheClient = getClient(cache.getBucketName());
cacheClient.flush().get();

We moved to spy.memcached 2.8.2 with no luck.

Thank you

Top
  • Login or register to post comments
Thu, 12/20/2012 - 23:49
tgrall
Offline
Joined: 09/05/2012
Groups: None

Hello,

Is is possible for you to move your application to the latest Couchbase SDK?
http://www.couchbase.com/develop/java/current

With the latest Couchbase client you will be able to do:

    List<URI> uris = new ArrayList<URI>();
    uris.add(URI.create("http://your-host:8091/pools"));
    CouchbaseClient client = new CouchbaseClient(uris, "default", "");
    Boolean response = client.flush().get();

Will also check why you have an issue with Spy2.8.2

Regards
Tug

__________________

Tug
@tgrall

Top
  • Login or register to post comments
Fri, 12/21/2012 - 01:27
ingenthr
Offline
Joined: 03/16/2010
Groups:

In Couchbase Server, flush() needs to be handled a bit differently and spymemcached does only a flush that Couchbase Server cannot handle.

As Tug says, you can use the CouchbaseClient, but there is unfortunately one other minor bug in Couchbase Server 2.0 relating to flush. Currently, you have to use the Administrator username/password.

Your best way to use flush with Couchbase Server 2.0 is to first enable flush on the cluster, then use the ClusterManager class with the Administrator credentials from Couchbase Client 1.1 to perform your flush().

Top
  • Login or register to post comments
Fri, 12/21/2012 - 01:30
ingenthr
Offline
Joined: 03/16/2010
Groups:

Note the bug tracking this on Couchbase Server is MB-7381.

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker