-
Notifications
You must be signed in to change notification settings - Fork 412
Fix initial outbound sync infinite loop #550
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
Fix initial outbound sync infinite loop #550
Conversation
Codecov Report
@@ Coverage Diff @@
## master #550 +/- ##
==========================================
+ Coverage 90.23% 90.31% +0.07%
==========================================
Files 34 34
Lines 19182 19182
==========================================
+ Hits 17309 17324 +15
+ Misses 1873 1858 -15
Continue to review full report at Codecov.
|
Are you thinking tests that could've discovered the CPU usage somehow, or just ones that hit this LoC/function in general? |
I assume it should be possible to write a test which would have identified the fact that we'd never have finished syncing the full routing table (as long as there are more than a handful of entries). |
when all the channel messages can't fit into the buffer. Adds a test for PR lightningdevkit#550.
when all the channel messages can't fit into the buffer. Adds a test for PR lightningdevkit#550.
when all the channel messages can't fit into the buffer. Adds a test for PR lightningdevkit#550.
when all the channel messages can't fit into the buffer. Adds a test for PR lightningdevkit#550.
when all the channel messages can't fit into the buffer. Adds a test for PR lightningdevkit#550.
when all the channel messages can't fit into the buffer. Adds a test for PR lightningdevkit#550.
when all the channel messages can't fit into the buffer. Adds a test for PR lightningdevkit#550.
when all the channel messages can't fit into the buffer. Adds a test for PR lightningdevkit#550.
when all the channel messages can't fit into the buffer. Adds a test for PR lightningdevkit#550.
when all the channel messages can't fit into the buffer. Adds a test for PR lightningdevkit#550.
when all the channel messages can't fit into the buffer. Adds a test for PR lightningdevkit#550.
when all the channel messages can't fit into the buffer. Adds a test for PR lightningdevkit#550.
when all the channel messages can't fit into the buffer. Adds a test for PR lightningdevkit#550.
when all the channel messages can't fit into the buffer. Adds a test for PR lightningdevkit#550.
Merged via 556. |
Observed in testing as 100% CPU usage just sending the routing table over the wire. This would be a great opportunity to add some much-needed testing for this area of the code, so tagging as such - writing such tests is totally up for grabs, anyone is welcome to do so.