-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-11608] Gossip: Optimize alive message verification
Alive messages are currently verified in 2 places: 1) Gossip routing layer, before forwarded to the gossip membership layer 2) Gossip membership layer This causes redundant message verification which induces CPU overhead due to un-needed ECDSA signature verification. This change set: 1) Removes alive message verification in the routing layer 2) Solidifies the logic of the verification in the membership layer 3) Adds a unit test that ensures that: - Alive messages are verified "once" - Alive messages from membership responses are verified if they are fresher than the messages received directly by gossip so far. - Alive messages from membership requests are always verified since they trigger sending membership responses based on the membership request's alive message. Change-Id: I70f8c0f1acfdf52e2107fd71ad55a3d002a392ec Signed-off-by: yacovm <yacovm@il.ibm.com> (cherry picked from commit f4067cb)
- Loading branch information
Showing
3 changed files
with
260 additions
and
47 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
Oops, something went wrong.