-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Explicit handling of NOT_RESPONDING aliases. (#614)
* Explicit handling of NOT_RESPONDING aliases. Ensures that we can enter more than one ID with NOT_RESPONDING alias into the alias cache. This is critical so that the AddressedWriteFlow can correctly function in the presence of node IDs that disappeared from the network (or never existed). We already have a workaround where we add a node ID with the special alias NOT_RESPONDING, but the AliasCache was not prepared for having more than one such entry, and thus it was evicting these entries unexpectedly. This PR makes the NOT_RESPONDING entries unique in the aliasMap by appending part of the storage offset to the alias. * Fix style.
- Loading branch information
1 parent
f27dc08
commit 4704bda
Showing
3 changed files
with
98 additions
and
14 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