Details
-
Bug
-
Resolution: Fixed
-
Major
-
Goldfish GA
-
Untriaged
-
0
-
Unknown
-
Analytics Sprint 41, Analytics Sprint 42
Description
Need to make sure all SDK calls for COPY TO KV are properly handled to log the exception stacktrace and report our own exception as it seems few of the SDK exceptions are not serializable and can lead to halting:
Example:
Caused by: com.couchbase.client.core.error.UnambiguousTimeoutException: WaitUntilReady timed out in stage WAIT_FOR_CONFIG (spent PT5.000214339S in that stage) {"bucket":"VwBBXLprEVE0","checkedServices":[],"desiredState":"ONLINE","remainingPingTargets":{},"services":{"kv":[{"last_activity_us":4044086,"namespace":"VwBBXLprEVE0","state":"connected","circuit_breaker_state":"disabled","id":"0x79d1822a","remote":"svc-dqis-node-001.wkuntzjabqfx7kp6.nonprod-project-avengers.com:11207","local":"10.2.115.238:57064"},{"last_activity_us":4802643,"namespace":"VwBBXLprEVE0","state":"connected","circuit_breaker_state":"disabled","id":"0x94a34c82","remote":"svc-dqis-node-003.wkuntzjabqfx7kp6.nonprod-project-avengers.com:11207","local":"10.2.115.238:47946"},{"last_activity_us":1044001,"namespace":"VwBBXLprEVE0","state":"connected","circuit_breaker_state":"disabled","id":"0x066390d4","remote":"svc-dqis-node-002.wkuntzjabqfx7kp6.nonprod-project-avengers.com:11207","local":"10.2.115.238:40946"}]},"state":{"current_stage":"WAIT_FOR_CONFIG","current_stage_since_ms":5108,"timings_ms":{},"total_ms":5108},"timeoutMs":5000}
|
Suppressed: java.lang.Exception: The above exception was originally thrown by another thread at the following location.
|
2024-04-29T08:46:17.982+00:00 ERRO CBAS.ipc.CCNCFunctions [IPC Network Listener Thread [/0.0.0.0:9115]] Error serializing org.apache.hyracks.control.common.ipc.CCNCFunctions$NotifyTaskFailureFunction@752f6a21
|
java.io.NotSerializableException: com.couchbase.client.core.error.context.CancellationErrorContext
|
at java.base/java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1187) ~[?:?]
|
at java.base/java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1572) ~[?:?]
|