Couchbase Questions: Java SDK

Have a Question? Get it answered by our community

seans's picture
Asked 1 month 4 weeks ago
Latest activity 1 month 2 weeks ago

Too many open files

Hi,

We are currently using Couchbase 1.8 with the version 1.2.2 of the Java client library. Occasionally, we have noticed that the the process that uses the Java client library complains of having too many open files. Using lsof on the running process, I can see 32000+ TCP connections...

jamieb's picture
Asked 2 months 3 hours ago
Latest activity 1 month 2 weeks ago

IllegalStateException: Shutting Down

Hi. Using Couchbase in a fairly simple way and everything has been going fine, but all of a sudden every time I request a document (I can see it in the Admin Console) I get this;

Caused by: java.lang.IllegalStateException: Shutting down
at net.spy.memcached.MemcachedConnection....

nolandubeau's picture
Asked 2 months 3 days ago
Latest activity 1 month 2 weeks 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 4 days ago
Latest activity 1 month 2 weeks 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 5 days ago
Latest activity 1 month 2 weeks 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 1 week ago
Latest activity 2 months 4 days 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 1 week ago
Latest activity 1 month 2 weeks 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 2 months 2 weeks ago

test

Test

arindamroy123's picture
Asked 2 months 2 weeks ago
Latest activity 1 month 2 weeks 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 2 months 2 weeks ago
Latest activity 1 month 2 weeks ago

Large documents are missing

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

CouchbaseClient#set(id, doc)
...

Pages