ChunkStore: fix row-id computation when removing dangling static chunks#8020
Merged
ChunkStore: fix row-id computation when removing dangling static chunks#8020
Conversation
abey79
approved these changes
Nov 7, 2024
Member
abey79
left a comment
There was a problem hiding this comment.
Looks legit to my uneducated eyes. Did you have a (simple) repro that could be turned into a test? (If not I guess the debug_assert will do).
Member
Author
I do have a simple repro (see original issue), but the bug itself felt too niche and too localized to meet my standards for "worth the maintenance cost of one more test". I'll try and implement and see how bad it is though, just in case. |
Member
Author
|
Ok no it definitely gets over the threshold 😬 |
Member
|
@teh-cmc Thank you for the quick fix! The problems seem to be solved by this. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The assertion was correct 🥳🎈.
There was a real memleak in there when dealing with partially dangling static chunks (simplifying a bit: those are static chunks being overwritten for some components but not all, which is a very niche use case, thus why we've never hit it until now).
chunk_id_removed.is_some()#7992cc @grtlr
Checklist
mainbuild: rerun.io/viewernightlybuild: rerun.io/viewerCHANGELOG.mdand the migration guideTo run all checks from
main, comment on the PR with@rerun-bot full-check.