-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle expired client errors in workers (#1664)
* Improve spawning of supervisor worker tasks * Add test to reproduce client expiry error * Trying to make connection worker abort on error * Properly terminate connection worker when client is expired * Abort channel worker on client expired error * New issue found in handling client expiration error in workers * Fix mock test failure * Terminate packet worker when client is expired * Do not retry channel creation if client is expired * Abort connection and channel worker when handshake is completed * Use better names for worker tasks * Improve connection expiration test * Use better names for worker tasks * Add integration tests for connection and channel workers * Fix connection and channel workers * Fix typo * Reorder arguments in assert_eventually_succeed * Make task step runner return Next::Continue/Abort * Make init_connection/channel return initialized Connection/Channel * Refactor connection/channel established as assertions * Found a bug in connection handshake code * Fix incorrect ordering in restore_from_event * Automate packet worker * Log handshake step result as info * Remove connection expiration test The same test is now within the channel expiration test * Move client_expiration tests to non-manual * Try to tame misbehavior task error on expiration * Make handshake_step return task::Next instead of bool * Update comment instruction for running expiration tests * Slightly improve misbehavior task and add failure test * Slightly simplify misbehavior expiration test * Add changelog * Abort connection/channel worker if counterparty state is already Open
- Loading branch information
1 parent
080d769
commit 03d4716
Showing
43 changed files
with
1,213 additions
and
366 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
.changelog/unreleased/bug-fixes/ibc-relayer/1664-handle-expired-client.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- Handle expired client errors in workers ([#1543](https://github.com/informalsystems/ibc-rs/issues/1543)) |
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
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
Oops, something went wrong.