You can set both the indexer timeout and the query timeout. Can you please post on Stack Overflow or Couchbase forums, and include both your index and query.
Gerald On Monday, July 18, 2016 at 7:23:13 PM UTC-7, Caio Costa wrote: > > Have you already find out the solution for this issue? I'm having the same > problem. It's ridiculous! When I try to execute a N1QL query more than 15 > times, it always throws those exceptions! > > Em sábado, 20 de junho de 2015 01:38:04 UTC-3, Foosh escreveu: >> >> I'm trying to use the Java SDK to write a simple query but no matter what >> I try, it always times out with the following exception >> >> *java.util.concurrent.TimeoutException* >> *at >> com.couchbase.client.java.util.Blocking.blockForSingle(Blocking.java:93)* >> *at >> com.couchbase.client.java.CouchbaseBucket.query(CouchbaseBucket.java:510)* >> >> At this point, I'm just trying to query the sample data to get something >> working but it still times out. I referenced the code in tutorial at >> http://docs.couchbase.com/developer/java-2.1/tutorial.html. The code I'm >> using is >> >> *CouchbaseCluster cluster = CouchbaseCluster.create(myServerAddress);* >> *Bucket bucket = cluster.openBucket("beer-sample", 10, TimeUnit.MINUTES);* >> >> *ViewResult result = bucket.query(ViewQuery.from("beer", >> "by_name").limit(1), 10, TimeUnit.MINUTES);* >> >> What am I doing wrong? I feel like I'm missing something simple. >> >> I appreciate any help. >> >> Bill >> > -- You received this message because you are subscribed to the Google Groups "Couchbase" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
