Requests throw TimeoutException after some time

SpringBoot version: 2.2.2.RELEASE
com.couchbase.client java-client dependency version: 2.7.7
Couchbase version: Enterprise Edition 7.1.3

When a request comes after my project starts running in Kubernetes;

2024-02-26 03:42:48.229  INFO 25421 --- [      cb-io-1-3]  --- com.couchbase.client.core.node.Node      : Connected to Node xx.xx.xx.245
2024-02-26 03:42:48.240  INFO 25421 --- [      cb-io-1-4]  --- com.couchbase.client.core.node.Node      : Connected to Node xx.xx.xx.245
2024-02-26 03:42:48.247  INFO 25421 --- [      cb-io-1-1]  --- c.c.client.core.endpoint.Endpoint        : [/xx.xx.xx.31:8093][QueryEndpoint]: Got notified from Channel as inactive, attempting reconnect.
2024-02-26 03:42:48.247  INFO 25421 --- [      cb-io-1-1]  --- com.couchbase.client.core.node.Node      : Disconnected from Node xx.xx.xx.31
2024-02-26 03:42:48.282  INFO 25421 --- [      cb-io-1-5]  --- com.couchbase.client.core.node.Node      : Connected to Node xx.xx.xx.31
2024-02-26 03:42:48.299  INFO 25421 --- [     cb-io-1-10]  --- c.c.client.core.endpoint.Endpoint        : [/xx.xx.xx.173:8093][QueryEndpoint]: Got notified from Channel as inactive, attempting reconnect.
2024-02-26 03:42:48.299  INFO 25421 --- [     cb-io-1-10]  --- com.couchbase.client.core.node.Node      : Disconnected from Node xx.xx.xx.173
2024-02-26 03:42:48.335  INFO 25421 --- [      cb-io-1-6]  --- com.couchbase.client.core.node.Node      : Connected to Node xx.xx.xx.173
2024-02-26 03:42:53.266  INFO 25421 --- [      cb-io-1-3]  --- c.c.client.core.endpoint.Endpoint        : [/xx.xx.xx.245:8093][QueryEndpoint]: Got notified from Channel as inactive, attempting reconnect.
2024-02-26 03:42:53.267  INFO 25421 --- [      cb-io-1-3]  --- com.couchbase.client.core.node.Node      : Disconnected from Node xx.xx.xx.245
2024-02-26 03:42:53.281  INFO 25421 --- [      cb-io-1-4]  --- c.c.client.core.endpoint.Endpoint        : [/xx.xx.xx.245:8093][QueryEndpoint]: Got notified from Channel as inactive, attempting reconnect.
...
...
...

INFO logs are being printed in console. After a while, the “Connected to Node” logs are interrupted and the message “Got notified from Channel as inactive, attempting reconnect.” logs are starting to increase. Eventually all requests timeout.

I tried the QueryServiceConfig.create(0, 12, 1); suggestion but it didn’t work. Anyone have an idea for a solution?

It’s likely that your client cannot connect to your server. SDK Doctor is useful for troubleshooting client connectivity. SDK Doctor | Couchbase Docs

There may also be additional information in the exception.

Hi, I updated the couchbase java sdk version from 2.7 to 3.6. I’ve been observing for a while. The problem seems to be solved.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.