Error code table
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
BTW, re: error code table, someone else may be able to help.
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
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.