-
-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implicit withdrawals are now generated also on correct subprefix routing #439
Conversation
🏃 Benchmark Results 🏃
|
52c5d86
to
deab222
Compare
Codecov Report
@@ Coverage Diff @@
## master #439 +/- ##
==========================================
+ Coverage 81.87% 81.91% +0.03%
==========================================
Files 6 6
Lines 2047 2051 +4
==========================================
+ Hits 1676 1680 +4
Misses 371 371
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you provide unittests for this part of the code? (with mocking redis)
@slowr I added the unit tests, just let me know if we have a good way of also simulating redis state on the fly (I tried mockredis but it does not create state as expected). |
unit tests with mock redis exists also added. |
Note that full partial withdrawal support will be implemented in 2.0.0 (issue #440) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Only comment I have is for maybe moving the rules within the unit tests instead (have like a static function to set them inside the unit test itself or something)
Will be addressed in separate issue #441 |
Description of PR
What component(s) does this PR affect?
Does the PR require changes on other components? If yes, please mark the components:
Related Issue
Resolves #438
Blocks #436 #437
Solution
The main logic of this PR is the following:
Note that in a future issue we need to carefully account for what prefix space is currently healed; this PR is an approximation for direct more specifics advertised during the deaggregation process (it is OK to assume that subprefix routing done for the entire prefix space will result in the hijack being mitigated, even if we do not wait to see all subprefix announcements).
Type
Checklist: