TimeoutException

We are getting below exception often, We are testing java api with 50 requests / second.

Caused by: java.util.concurrent.TimeoutException
at com.couchbase.client.java.util.Blocking.blockForSingle(Blocking.java:75) [java-client-2.2.1.jar:]
at com.couchbase.client.java.CouchbaseBucket.query(CouchbaseBucket.java:626) [java-client-2.2.1.jar:]
at com.couchbase.client.java.CouchbaseBucket.query(CouchbaseBucket.java:564) [java-client-2.2.1.jar:]

how does your client`s connection profile set?
have you add kvTimeout() to CouchbaseEnvironment.builder()?

Hi @gadipati,

we need more information to debug your issue.

Let’s start with:

  • How does your client/server setup look like?
  • How is your server cluster configured?
  • What timeout are you using and did you measure the latency on your network?
  • Do you see these timeouts in spikes or on a regular basis?
  • Can you share TRACE logs of your application?