Open su-chang opened 4 years ago
If I remember right, the canceled
event will be fired when the GRPC connection lost.
It was emitted by the GRPC itself, and we should try again for this case.
CANCELLED | 1 | The operation was cancelled, typically by the caller.
See: https://grpc.github.io/grpc/core/md_doc_statuscodes.html
Have there any problems with the re-connect /retry/recovery functions of our code?
Thank you for your response very much!
There are some detail info about this issue:
When hostie server side run in docker container, and the docker restart, the method stop()
in puppet-hostie will emit logout
event, and when it restart, UNKNOWN: Stream removed
happened, maybe this problem is due to GRPC connection lost.
How to make hostie re-connect smoothly?
In order to make the hostie re-connect smoothly, I believe that we should close the GRPC connect gracefully when we stop our puppet.
PR will be welcome, and please let me know if there has any issues with the recovery code with the current codebase.
I do not where emit the
cancelled
event, and why does it happened?Could you please provide some advices for it? @huan
Thank you very much.
Other Related Log