TimeoutException on java client 2.1.1 and dp4


#1

Hi,
I keep getting the timeout exception when executing a n1ql query.
The exception is usually thrown if I have 7 or more documents returned in the response.
If I restart the n1ql service on each node, the problem is solved, but after a few more queries, the exception is thrown again.
I am using dp4 and java client 2.1.1.

This is my environment configuration:

            couchbaseEnvironment = DefaultCouchbaseEnvironment.builder()
                    .viewTimeout(5000)
                    .queryTimeout(5000)
                    .computationPoolSize(4)
                    .keepAliveInterval(0L)
                    .queryEnabled(true).build();

            cluster = CouchbaseCluster.create(couchbaseEnvironment, cbNodesNames);
            bucket = cluster.openBucket(bucketName, bucketPwd, 5000, TimeUnit.MILLISECONDS);

Any ideas?

Thanks


#2

Would you mind trying out 2.1.2-dp and see if things change?

<dependencies>
    <dependency>
        <groupId>com.couchbase.client</groupId>
        <artifactId>java-client</artifactId>
        <version>2.1.2-dp</version>
    </dependency>
</dependencies>

<repositories>
    <repository>
        <id>couchbase</id>
        <name>couchbase repo</name>
        <url>http://files.couchbase.com/maven2</url>
        <snapshots><enabled>false</enabled></snapshots>
    </repository>
</repositories>

If not, can you please post TRACE level logs along with some code to reproduce? Thank you!