-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle retry for syncLoop and watchLoop (#863)
This commit addresses the need to retry `syncLoop` and `watchLoop` functions based on different error codes from `ConnectError`. Connect guide indicates that for error codes like `ResourceExhausted` and `Unavailable`, retries should be attempted following guidelines. https://connectrpc.com/docs/protocol/#error-codes. Additionally, `Unknown` and `Canceled` are added separately as it typically occurs when the server is stopped. To enhance visibility into the status of `syncLoop` and `watchLoop`, `Conditions` has been added.
- Loading branch information
1 parent
4f7dcce
commit ff7d63a
Showing
4 changed files
with
120 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters