Skip to content

Fix usage of moved from variable in rebuild metrics #3026

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

Merged
merged 3 commits into from
Mar 20, 2023

Conversation

patszt
Copy link
Contributor

@patszt patszt commented Mar 20, 2023

The count of currently rebuilt partitions was calculated based on size of a moved from vector.
This resulted in wrong rebuild metrics

@patszt patszt changed the title Fix usage of moved from variable used in rebuild metrics Fix usage of moved from variable in rebuild metrics Mar 20, 2023
@patszt patszt added the bug Incorrect behavior label Mar 20, 2023
Copy link
Member

@dominiklohmann dominiklohmann left a comment

Choose a reason for hiding this comment

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

I verified locally that the metrics now display as expected, and as a follow-up pushed another fix that makes rebuilding also stop correctly when assertions are enabled.

Thanks for the quick reaction to the bug report, @patszt! 🚀

@dominiklohmann dominiklohmann marked this pull request as ready for review March 20, 2023 16:41
@dominiklohmann dominiklohmann merged commit d7cb239 into main Mar 20, 2023
@dominiklohmann dominiklohmann deleted the topic/fix-rebuild-metrics branch March 20, 2023 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Incorrect behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants