-
Notifications
You must be signed in to change notification settings - Fork 502
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
services/horizon: Ignore db.ErrCanceled and ctx.Canceled returned by …
…verifyState. (#2366) * Ignore db.ErrCanceled and ctx.Canceled returned by verifyState If the system is shutdown during state verification, there is a warning in the log showing ``` WARN[2020-02-04T18:14:19.987+01:00] State verification errored err="addAccountsToStateVerifier failed: Error running history.Q.GetAccountsByIDs: select failed: context canceled" pid=99452 service=expingest ``` If the system is being shutdown gracefully which is the case when we get this errors, then we shouldn't log an error. Fix #2224 * Add isCancelledError. * Use isCancelledError in runStateMachine. * Simplify isCancelledError.
- Loading branch information
Showing
2 changed files
with
79 additions
and
4 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