oxia-java
oxia-java copied to clipboard
Ambiguous Error CANCELLED: context canceled
Motivation
The client can't get the real caused of error.
Server side:
Aug 22, 2024 @ 11:08:57.788 | {"level":"warn","time":"2024-08-22T11:08:57.788091476Z","component":"leader-controller","error":{"error":"rpc error: code = Code(104) desc = oxia: node is shutting down","kind":"*status.Error","stack":null},"namespace":"xxx","peer":"192.168.2.249:58692","shard":1,"term":16,"time":"2024-08-22T11:08:57.788102614Z","message":"Failed to dispatch notifications"}
Java Client side:
2024-08-22T11:08:57,805+0000 [grpc-default-worker-ELG-2-3] WARN io.streamnative.oxia.client.notify.ShardNotificationReceiver - Error while receiving notifications for shard=1: CANCELLED: context canceled - Retrying in 0.113 seconds