I’ve set the logging level to TRACE, like you suggested. It seems, that my custom timeout value is honored.
2016-10-06 08:55:28,485 INFO (c.c.c.c.l.Slf4JLogger:121) CouchbaseEnvironment: {sslEnabled=false, sslKeystoreFile='null', sslKeystorePassword='null', queryEnabled=false, queryPort=8093, bootstrapHttpEnabled=true, bootstrapCarrierEnabled=true, bootstrapHttpDirectPort=8091, bootstrapHttpSslPort=18091, bootstrapCarrierDirectPort=11210, bootstrapCarrierSslPort=11207, ioPoolSize=3, computationPoolSize=3, responseBufferSize=16384, requestBufferSize=16384, kvServiceEndpoints=1, viewServiceEndpoints=1, queryServiceEndpoints=1, searchServiceEndpoints=1, ioPool=NioEventLoopGroup, coreScheduler=CoreScheduler, eventBus=DefaultEventBus, packageNameAndVersion=couchbase-jvm-core/1.2.4 (git: 1.2.4), dcpEnabled=false, retryStrategy=BestEffort, maxRequestLifetime=75000, retryDelay=ExponentialDelay{growBy 1.0 MICROSECONDS; lower=100, upper=100000}, reconnectDelay=ExponentialDelay{growBy 1.0 MILLISECONDS; lower=32, upper=4096}, observeIntervalDelay=ExponentialDelay{growBy 1.0 MICROSECONDS; lower=10, upper=100000}, keepAliveInterval=30000, autoreleaseAfter=2000, bufferPoolingEnabled=true, tcpNodelayEnabled=true, mutationTokensEnabled=false, socketConnectTimeout=1000, dcpConnectionBufferSize=20971520, dcpConnectionBufferAckThreshold=0.2, queryTimeout=75000, viewTimeout=75000, kvTimeout=30000, connectTimeout=30000, disconnectTimeout=25000, dnsSrvEnabled=false}
But I’ve discovered some other thing. The timeouts seem to occure close to a failed attempt to fetch some bucket configuration.
Another TimeoutException:
2016-10-06 12:47:06,512 ERROR (c.p.s.c.CouchbaseConnection:109) Blad podczas zapisywania obiektu dla klucza FB;S100564-R3860-L7;104590140009935
java.lang.RuntimeException: java.util.concurrent.TimeoutException
at com.couchbase.client.java.util.Blocking.blockForSingle(Blocking.java:75)
at com.couchbase.client.java.CouchbaseBucket.upsert(CouchbaseBucket.java:358)
at com.couchbase.client.java.CouchbaseBucket.upsert(CouchbaseBucket.java:353)
at com.picadilla.services.couchbase.CouchbaseConnection.save(CouchbaseConnection.java:103)
at com.picadilla.services.impl.tournaments.ScoreService.recordPlayerScore(ScoreService.java:80)
at com.picadilla.services.impl.tournaments.ScoreService.set(ScoreService.java:55)
at com.picadilla.commands.QualificationScoreCommand.execute(QualificationScoreCommand.java:117)
at sun.reflect.GeneratedMethodAccessor388.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.picadilla.services.sockets.CommandDispatcher.execute(CommandDispatcher.java:250)
at com.picadilla.services.sockets.CommandDispatcher.execute(CommandDispatcher.java:418)
at com.picadilla.services.sockets.CommandDispatcher.execute(CommandDispatcher.java:51)
at com.picadilla.utils.service.PlayerLockExecutor.nextExecution(PlayerLockExecutor.java:203)
at com.picadilla.utils.service.PlayerLockExecutor.run(PlayerLockExecutor.java:158)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.util.concurrent.TimeoutException: null
... 16 common frames omitted
And the failed attempt to get a bucket configuration at nearly the same time:
2016-10-06 12:50:02,625 TRACE (c.c.c.c.l.Slf4JLogger:71) [cb-hb-fb-test.awspicadilla.eu/10.91.133.32:11210][KeyValueEndpoint]: Started decoding of UpsertRequest{observable=rx.subjects.AsyncSubject@7885bd5b, bucket='hb'}
2016-10-06 12:50:02,625 TRACE (c.c.c.c.l.Slf4JLogger:71) [cb-hb-fb-test.awspicadilla.eu/10.91.133.32:11210][KeyValueEndpoint]: Finished decoding of UpsertRequest{observable=rx.subjects.AsyncSubject@7885bd5b, bucket='hb'}
2016-10-06 12:50:03,548 DEBUG (c.c.c.c.l.Slf4JLogger:111) Could not fetch config from bucket "hb_ranking" against "cb-hb-fb-test.awspicadilla.eu/10.91.133.32".
com.couchbase.client.core.RequestCancelledException: Could not dispatch request, cancelling instead of retrying.
at com.couchbase.client.core.retry.RetryHelper.retryOrCancel(RetryHelper.java:51)
at com.couchbase.client.core.RequestHandler.onEvent(RequestHandler.java:206)
at com.couchbase.client.core.RequestHandler.onEvent(RequestHandler.java:76)
at com.couchbase.client.deps.com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:128)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at com.couchbase.client.deps.io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
at java.lang.Thread.run(Thread.java:745)
2016-10-06 12:50:03,549 DEBUG (c.c.c.c.l.Slf4JLogger:111) Error while refreshing bucket config, ignoring.
com.couchbase.client.core.RequestCancelledException: Could not dispatch request, cancelling instead of retrying.
at com.couchbase.client.core.retry.RetryHelper.retryOrCancel(RetryHelper.java:51)
at com.couchbase.client.core.RequestHandler.onEvent(RequestHandler.java:206)
at com.couchbase.client.core.RequestHandler.onEvent(RequestHandler.java:76)
at com.couchbase.client.deps.com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:128)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at com.couchbase.client.deps.io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
at java.lang.Thread.run(Thread.java:745)
2016-10-06 12:50:03,549 DEBUG (c.c.c.c.l.Slf4JLogger:111) Could not fetch config from bucket "hb_ranking_archive" against "cb-hb-fb-test.awspicadilla.eu/10.91.133.32".
com.couchbase.client.core.RequestCancelledException: Could not dispatch request, cancelling instead of retrying.
at com.couchbase.client.core.retry.RetryHelper.retryOrCancel(RetryHelper.java:51)
at com.couchbase.client.core.RequestHandler.onEvent(RequestHandler.java:206)
at com.couchbase.client.core.RequestHandler.onEvent(RequestHandler.java:76)
at com.couchbase.client.deps.com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:128)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at com.couchbase.client.deps.io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
at java.lang.Thread.run(Thread.java:745)
2016-10-06 12:50:03,549 DEBUG (c.c.c.c.l.Slf4JLogger:111) Error while refreshing bucket config, ignoring.
com.couchbase.client.core.RequestCancelledException: Could not dispatch request, cancelling instead of retrying.
at com.couchbase.client.core.retry.RetryHelper.retryOrCancel(RetryHelper.java:51)
at com.couchbase.client.core.RequestHandler.onEvent(RequestHandler.java:206)
at com.couchbase.client.core.RequestHandler.onEvent(RequestHandler.java:76)
at com.couchbase.client.deps.com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:128)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at com.couchbase.client.deps.io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
at java.lang.Thread.run(Thread.java:745)
2016-10-06 12:50:03,549 DEBUG (c.c.c.c.l.Slf4JLogger:111) Could not fetch config from bucket "hb" against "cb-hb-fb-test.awspicadilla.eu/10.91.133.32".
com.couchbase.client.core.RequestCancelledException: Could not dispatch request, cancelling instead of retrying.
at com.couchbase.client.core.retry.RetryHelper.retryOrCancel(RetryHelper.java:51)
at com.couchbase.client.core.RequestHandler.onEvent(RequestHandler.java:206)
at com.couchbase.client.core.RequestHandler.onEvent(RequestHandler.java:76)
at com.couchbase.client.deps.com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:128)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at com.couchbase.client.deps.io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
at java.lang.Thread.run(Thread.java:745)
2016-10-06 12:50:03,549 DEBUG (c.c.c.c.l.Slf4JLogger:111) Error while refreshing bucket config, ignoring.
com.couchbase.client.core.RequestCancelledException: Could not dispatch request, cancelling instead of retrying.
at com.couchbase.client.core.retry.RetryHelper.retryOrCancel(RetryHelper.java:51)
at com.couchbase.client.core.RequestHandler.onEvent(RequestHandler.java:206)
at com.couchbase.client.core.RequestHandler.onEvent(RequestHandler.java:76)
at com.couchbase.client.deps.com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:128)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at com.couchbase.client.deps.io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
at java.lang.Thread.run(Thread.java:745)
Are those the problem? And if so - what seems to be causing them?