Skip to content
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

[columnar] [Bug]: Vacuum still fails by hanging indefinitely #80

Merged
merged 1 commit into from
May 16, 2023

Conversation

mkaruza
Copy link
Contributor

@mkaruza mkaruza commented May 16, 2023

During vacuum, stripes are collected in reverse order and if row number is greater than defined limit we should stop and combine previous stripe into them into one. Problem is that while writing rows into temporary write state object - this condition is not greater but greater or equal which lead to infinite loop. Fixed by using proper comparison operator when stripe candidates are choosen.

What's changed?

@mkaruza mkaruza requested a review from JerrySievert May 16, 2023 11:23
Copy link
Contributor

@JerrySievert JerrySievert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

During vacuum, stripes are collected in reverse order and if row number
is greater than defined limit we should stop and combine previous stripe into
them into one. Problem is that while writing rows into temporary write state
object - this condition is not greater but greater or equal which lead to infinite
loop. Fixed by using proper comparison operator when stripe candidates are
choosen.
@mkaruza mkaruza merged commit 1faf1e7 into main May 16, 2023
@mkaruza mkaruza deleted the github#76 branch May 16, 2023 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants