Couchbase Questions: Java SDK

Have a Question? Get it answered by our community

nolandubeau's picture
Asked 2 months 3 weeks ago
Latest activity 2 months 5 days ago

net.spy.memcached.OperationTimeoutException

I've been using the Couchbase Java SDK and am frequently encountering errors such as this:

Error Type: net.spy.memcached.OperationTimeoutException : [N/A]
Error Messages: Timeout waiting for value: waited 2,500 ms. Node status: Connection Status { 10.xx.xx.xx/10.xx.xx.xx:11210...

Joel's picture
Asked 2 months 3 weeks ago
Latest activity 2 months 5 days ago

Why is the Java client throwing unchecked exceptions?

The JavaDoc is (to be generous) rather sparse, and it's often not immediately clear how everything works together, so getting unchecked exceptions (e.g. from ViewResponse) is a really frustrating. Throwing checked exceptions would at least give some indication of what sort of things...

zbintliff's picture
Asked 2 months 3 weeks ago
Latest activity 2 months 5 days ago

set(key, doc, persistTo) sychronous or asychronous?

We are doing some proof of concepts and are testing different parts of couchbase. We have about 2.9 million documents that we are loading. I noticed that when I switched from set(key, value) to set(key, value, PersistTo.ONE) the performance plummetted (normal run time was 5 minutes now its...

alexo's picture
Asked 2 months 3 weeks ago
Latest activity 2 months 3 weeks ago

Java client not aware about failed over node

We are using the latest version of couchbase-java-client (1.4.0-dp2).
Assume the following scenario:
- We have a cluster with 2 nodes.
- Client is able to read & write documents to a bucket.
- create a couple of documents (one is active on node1, the other is active...

313180's picture
Asked 2 months 3 weeks ago
Latest activity 2 months 5 days ago

lost a lot of data where a node crash

my Test as follows:
I have start 4 nodes for the coucbase cluster.
1.start a client (1.4.0) to set 100 0000 items to the couchbase!
2.before the client add completed I kill one of the node.
3.and the client logs as "Discarding partially completed op: Cmd: 2 Opaque:...

bastianvs's picture
Asked 3 months 2 days ago

test

Test

arindamroy123's picture
Asked 3 months 1 week ago
Latest activity 2 months 5 days ago

How to resolve latency issue

Our requirement is to provide unique coupon to the user. We are generating unique coupons by our algorithm and storing in Couchbase DB.
We created one bucket where we are storing all the documents contain coupon codes. One column in the document is "IN USE". While supplying the coupons to...

keab.kcats's picture
Asked 3 months 1 week ago
Latest activity 2 months 5 days ago

Large documents are missing

I have bunch of documents sized from 2K to 10KB.
When I use

CouchbaseClient#set(id, doc)
...
Covering's picture
Asked 3 months 1 week ago
Latest activity 3 months 1 week ago

Problem about memcached bucket

Java client and C client cann't share data with memcached bucket.

Java client is version 1.1.5, C client version is 2.0.6.

In our test, the java client and c client are accessing different server node for the same key.

Problem only appears with memcached bucket.

Richa_jain's picture
Asked 3 months 1 week ago
Latest activity 2 months 5 days ago

Auto-increment ID

In my project, I have added an initial value to ID through java application.
Now, i want to auto-increment this ID value every time the program runs.

Pages