I am facing below issue while fetching and inserting the Document into CB server using java sdk. Please find the below exception stack trace,
This stack trace is for get operation and similar exception I am facing in case of upsert binary document.
Also, while fetching the Document from CB server, the timeout set is 4sec(as well tested with timeout 10 sec). In both cases, I am facing the issue. Currently I am using CB server version : 4.0.0 and CB client library version 2.2.8. Till now the analysis which I have done is given below,
I have debugged the CB client library code and found that its decreasing the countdownlatch using observer-subscriber which is another thread model and calling await() api with given timestamp in parent thread. So, the issue is that observer-subscriber thread is failing to decrease the countdownlatch and timeout period is getting elapsed because of which await() api is returning the false and throwing TimeoutException(). Also, I am performing the fetch operation in for loop (i.e. get() call per iteration). So, for some keys, facing the issue.
Please anyone who resolved the issue? or is there any alternate solution to achieve the same?