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

Any possibility for couchbase to find key to fail?

4 replies [Last post]
  • Login or register to post comments
Sun, 04/08/2012 - 21:46
sjpark9
Offline
Joined: 03/01/2012
Groups: None

Is there any chance for couchbase server to return error when get API is called? (example. Server Busy?)

I can see that if the key doesn't exist, it returns null (tested with getBulk API)

I was wondering if there is any chance for server to fail fetching the values due to cluster server's problem.

(might happen during getBulk. Because API document mentions only one network call exists, this means that connected server asks other server for the key/values if the connected server doesn't have that specific key)

Top
  • Login or register to post comments
Tue, 04/10/2012 - 00:35
ingenthr
Offline
Joined: 03/16/2010
Groups:

Yes, different client libraries handle this different ways. Which client library are you using at the moment?

Top
  • Login or register to post comments
Tue, 04/10/2012 - 01:17
sjpark9
Offline
Joined: 03/01/2012
Groups: None

I am looking at
libcouchbase of C
and spymemcached of JAVA at the moment

Top
  • Login or register to post comments
Tue, 04/10/2012 - 16:25
avsej
avsej's picture
Offline
Joined: 06/15/2011
Groups: None

The libcouchbase API will call you get_callback with appropriate error code for every single value.

https://github.com/couchbase/libcouchbase/blob/1.1.0dp2/include/libcouch...

More higher level drivers (like for ruby or php) convert NOT_FOUND errors to null's for easier operating, but there also (at least for ruby) the mode which raise errors.

__________________

Find me on FreeNode IRC in #libcouchbase channel

Top
  • Login or register to post comments
Wed, 04/11/2012 - 18:41
sjpark9
Offline
Joined: 03/01/2012
Groups: None

Thanks I will check on this

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