I have enabled Tracing from Java SDK to Couchbase Server by referring to this link
I am able to see tracing logs which provided me slowest operations as mentioned in the documentation. Eg:
{
“server_us” : 23,
“last_local_id” : “41837B87B9B1C5D1/000000004746B9AA”,
“last_local_address” : “127.0.0.1:55011”,
“last_operation_id” : “get:0x1”,
“decode_us” : 1203,
“last_dispatch_us” : 947,
“last_remote_address” : “127.0.0.1:11210”,
“total_us” : 1525
}
But for Timeout Exceptions , such logs are not printed. What I find is
java.lang.RuntimeException: java.util.concurrent.TimeoutException: {“b”:“travel-sample”,“r”:“127.0.0.1:11210”,“s”:“kv”,“c”:“30893646E8E78A3E/FFFFFFFFDE1ED905”,“t”:10000,“i”:“0x1”,“l”:“127.0.0.1:55821”}
at rx.exceptions.Exceptions.propagate(Exceptions.java:57)
at rx.observables.BlockingObservable.blockForSingle(BlockingObservable.java:463)
at rx.observables.BlockingObservable.singleOrDefault(BlockingObservable.java:372)
at com.couchbase.client.java.CouchbaseBucket.get(CouchbaseBucket.java:131)
at Main.main(Main.java:53)
How can I relate it to the cause of this exception?
According to the documentation the operation id provided in this exception can be linked to the tracer logs to find the cause but when TimeoutExceptions occur , I don’t find those logs to be printed.