Couchbase Questions: Java SDK

Have a Question? Get it answered by our community

ohassidi's picture
Asked 4 months 4 days ago
Latest activity 3 months 4 weeks ago

Write a List of documents to couchbase

Hi

Is there to write a bulk of documents to couchbase?
For example a list of documents in the form:

{
    "users": [
        {
            "name": "x",
            "address": "y
...
dengberg's picture
Asked 4 months 1 week ago
Latest activity 3 months 4 weeks ago

Java client occasionally leaks (non-daemon) netty IO threads after shutdown

We're using CouchbaseClient v1.4 from a Java server with moderately high concurrency.
When we shutdown the Couchbase client, it usually comes down cleanly, but we occasionally see lingering Netty threads:

...
seans's picture
Asked 4 months 1 week ago
Latest activity 3 months 4 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 4 months 1 week ago
Latest activity 3 months 4 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 4 months 2 weeks ago
Latest activity 3 months 4 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 4 months 2 weeks ago
Latest activity 3 months 4 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 4 months 2 weeks ago
Latest activity 3 months 4 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 4 months 2 weeks ago
Latest activity 4 months 2 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 4 months 2 weeks ago
Latest activity 3 months 4 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 4 months 3 weeks ago

test

Test

Pages