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

Error code table

3 replies [Last post]
  • Login or register to post comments
Fri, 03/08/2013 - 03:30
tony78890
Offline
Joined: 03/06/2013
Groups: None

Hi,

I like to find a complete set of existing couchbase error code/message. but I cannot find it. can anyone address me?

BTW I was asked about the data inconsistency for the async write queue.

As I know, couchbase is amazing and it puts all operation to non-blocking as much as possible. But what if the data is corrupted when
1. replicate from node to node
2. failed to flush the data to disk.

Any error log I can trace it back?

Thanks,

Tony Li

Top
  • Login or register to post comments
Sat, 03/09/2013 - 11:28
dipti
Offline
Joined: 11/02/2011
Groups:

Hi Tony,

Yes, we perform most operations asynchronously. There is a small window where inconsistency can happen. This is if a node fails and the replica is slightly behind. However, there are sync versions with durability requirements as well if there are parts of your document that you have harder durability / availability requirements on.

More info here: http://www.couchbase.com/docs/couchbase-sdk-java-1.1/couchbase-sdk-java-...

We recommend only using "replicateto" and use replication as the approach to durability because latency difference for writing to memory and writing to disk will be large. this obviously depends on your app requirements. many customers need 1-2ms response times and you will not see those if you persist each document to disk.

Top
  • Login or register to post comments
Sat, 03/09/2013 - 11:28
dipti
Offline
Joined: 11/02/2011
Groups:

BTW, re: error code table, someone else may be able to help.

Top
  • Login or register to post comments
Mon, 03/11/2013 - 08:12
avsej
avsej's picture
Offline
Joined: 06/15/2011
Groups: None

The error code list depends on the client you are using. The binary protocol error codes you can find here https://github.com/membase/memcached/blob/master/include/memcached/proto...

If you are using libcouchbase, or derived client, then the following error codes will be available (including protocol codes above) https://github.com/couchbase/libcouchbase/blob/master/src/strerror.c#L28

__________________

Find me on FreeNode IRC in #libcouchbase channel

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