Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: enable watch retries on Omni side
Enable retry logger in `omnictl`, now if Omni goes down, `omnictl` can correctly restart watches: ``` $ _out/omnictl-linux-amd64 get users -w * NAMESPACE TYPE ID VERSION + default User be9d5331-74b9-4dc8-a4eb-387107faf262 1 + default User cad2763b-1477-4bd5-9bc9-b3a369e39ffd 1 + default User d4a0e14c-5b76-43ad-9b81-08a95cdd6731 1 2024-11-05T20:04:11.309+0400 WARN client/client.go:504 watch retrying {"error": "rpc error: code = Internal desc = server closed the stream without sending trailers", "bookmark": "AAAAAAAAASw=", "backoff": "678.945448ms", "namespace": "default", "type": "Users.omni.sidero.dev"} 2024-11-05T20:04:11.990+0400 WARN client/client.go:504 watch retrying {"error": "rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing: dial tcp 100.119.35.2:443: connect: connection refused\"", "bookmark": "AAAAAAAAASw=", "backoff": "979.468482ms", "namespace": "default", "type": "Users.omni.sidero.dev"} 2024-11-05T20:04:12.970+0400 WARN client/client.go:504 watch retrying {"error": "rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing: dial tcp 100.119.35.2:443: connect: connection refused\"", "bookmark": "AAAAAAAAASw=", "backoff": "850.913234ms", "namespace": "default", "type": "Users.omni.sidero.dev"} 2024-11-05T20:04:13.821+0400 WARN client/client.go:504 watch retrying {"error": "rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing: dial tcp 100.119.35.2:443: connect: connection refused\"", "bookmark": "AAAAAAAAASw=", "backoff": "1.683608302s", "namespace": "default", "type": "Users.omni.sidero.dev"} 2024-11-05T20:04:15.505+0400 WARN client/client.go:504 watch retrying {"error": "rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing: dial tcp 100.119.35.2:443: connect: connection refused\"", "bookmark": "AAAAAAAAASw=", "backoff": "3.759619924s", "namespace": "default", "type": "Users.omni.sidero.dev"} 2024-11-05T20:04:19.266+0400 WARN client/client.go:504 watch retrying {"error": "rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing: dial tcp 100.119.35.2:443: connect: connection refused\"", "bookmark": "AAAAAAAAASw=", "backoff": "3.985097297s", "namespace": "default", "type": "Users.omni.sidero.dev"} 2024-11-05T20:04:23.253+0400 WARN client/client.go:504 watch retrying {"error": "rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing: dial tcp 100.119.35.2:443: connect: connection refused\"", "bookmark": "AAAAAAAAASw=", "backoff": "4.74055025s", "namespace": "default", "type": "Users.omni.sidero.dev"} 2024-11-05T20:04:27.995+0400 WARN client/client.go:504 watch retrying {"error": "rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing: dial tcp 100.119.35.2:443: connect: connection refused\"", "bookmark": "AAAAAAAAASw=", "backoff": "7.308402811s", "namespace": "default", "type": "Users.omni.sidero.dev"} 2024-11-05T20:04:35.309+0400 WARN client/client.go:504 watch retrying {"error": "rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing: dial tcp 100.119.35.2:443: connect: connection refused\"", "bookmark": "AAAAAAAAASw=", "backoff": "8.806341922s", "namespace": "default", "type": "Users.omni.sidero.dev"} default User cad2763b-1477-4bd5-9bc9-b3a369e39ffd 2 - default User cad2763b-1477-4bd5-9bc9-b3a369e39ffd 2 ``` Signed-off-by: Andrey Smirnov <[email protected]>
- Loading branch information