I run integration tests backed by Couchbase Community Edition 4.1.1 and sometimes a couple of tests fails because of java.util.concurrent.TimeoutException
.
The error appears when running "DELETE FROM " + bucket;
with REQUEST_PLUS
consistency.
I’m using Spring Data Couchbase for communication with Couchbase.
The couchbase java client version is 2.2.8
N1QL timeout is set to 7,5 seconds.
Here is a Java code:
String statement = "DELETE FROM " + bucket + " USE KEYS $1";
couchbaseTemplate.queryN1QL(parameterized(statement, from(), build().consistency(REQUEST_PLUS)));
and the end part of the exception:
Caused by: java.lang.RuntimeException: java.util.concurrent.TimeoutException
at com.couchbase.client.java.util.Blocking.blockForSingle(Blocking.java:75) ~[java-client-2.2.8.jar:na]
at com.couchbase.client.java.CouchbaseBucket.query(CouchbaseBucket.java:656) ~[java-client-2.2.8.jar:na]
at com.couchbase.client.java.CouchbaseBucket.query(CouchbaseBucket.java:582) ~[java-client-2.2.8.jar:na]
at org.springframework.data.couchbase.core.CouchbaseTemplate$8.doInBucket(CouchbaseTemplate.java:490) ~[spring-data-couchbase-2.1.3.RELEASE.jar:na]
at org.springframework.data.couchbase.core.CouchbaseTemplate$8.doInBucket(CouchbaseTemplate.java:487) ~[spring-data-couchbase-2.1.3.RELEASE.jar:na]
at org.springframework.data.couchbase.core.CouchbaseTemplate.execute(CouchbaseTemplate.java:530) ~[spring-data-couchbase-2.1.3.RELEASE.jar:na]
... 81 common frames omitted
Caused by: java.util.concurrent.TimeoutException: null
... 87 common frames omitted