-
Notifications
You must be signed in to change notification settings - Fork 81
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
Block Machine: Handle case where number of rows is just enough #2070
base: main
Are you sure you want to change the base?
Conversation
Test fails |
self.degree = compute_size_and_log( | ||
&self.name, | ||
// At this point, the still contains the dummy block, which will be removed below. | ||
// Therefore, we subtract the block size here. |
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.
This feels kinda hacky..
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.
Hmm, so I think the hacky part is that the data has a block that will be removed later, right? Which was the case before this PR?
I tried refactoring it, but it's kinda complicated. LMK if you have a suggestion.
Before this PR, we used to panic if the number of rows in a block machine was just enough to fit the needed number of blocks. This PR fixes it.