-
Notifications
You must be signed in to change notification settings - Fork 51
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: message cache unordered removal #2682
Conversation
You can find the image built from this PR at
Built from 18916e6ea0c7283b0e9ec7dbc5d7353c72af3523 |
You can find the image built from this PR at
Built from 18916e6ea0c7283b0e9ec7dbc5d7353c72af3523 |
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, thank you!
@erhant If you feel like it, you could use this image to check if it actually fixes your issues |
awesome, thanks! |
update: the new image above worked like charm, great work! For the record, we were able to reproduce the bug with @anilaltuner as follows:
we are working with https://github.com/firstbatchxyz/dkn-compute-node for the context* anyways, im confident that this is fixed now |
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.
Shall I say LGTM? Yes it is, but this code definetely lacks some explanatory comments, like why the descendant sorting needed.
Sometime we might think of implementing a multi index container, that can simplify such code a lot.
I went with the easy fix and I agree that the message cache impl. should be rewritten. |
Fixes a crash in message cache because the code assumed messages to be removed were ordered.
I also added a basic fuzzing test.
Closes #2680