Skip to content

Fix remaining partitions counter in the rebuilder #3147

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
May 12, 2023

Conversation

dominiklohmann
Copy link
Member

This fixes a few things around rebuild statistics, in particular the rebuilder.partitions.remaining metric and the
rebuild.statistics.remaining field in the output of vast status rebuild:

  • Fixed a bug where the rebuilder dereferenced an invalidated iterator into the list of catalog lookup results when no partitions for one schema needed to be rebuilt. This bug only affected metrics, but not the actual partitions used for the rebuilding.
  • Removed a trigger for rebuilder metrics that caused metrics to be emitted twice when done, or before some partitions that did not need to be rebuilt were pruned from the list of partitions.

This fixes a few things around rebuild statistics, in particular the
`rebuilder.partitions.remaining` metric and the
`rebuild.statistics.remaining` field in the output of `vast status
rebuild`:

- Fixed a bug where the rebuilder dereferenced an invalidated iterator
  into the list of catalog lookup results when no partitions for one
  schema needed to be rebuilt. This bug only affected metrics, but not
  the actual partitions used for the rebuilding.
- Removed a trigger for rebuilder metrics that caused metrics to be
  emitted twice when done, or before some partitions that did not need
  to be rebuilt were pruned from the list of partitions.
@dominiklohmann dominiklohmann added the bug Incorrect behavior label May 12, 2023
dominiklohmann and others added 2 commits May 12, 2023 09:58
Co-authored-by: Matthias Vallentin <matthias@vallentin.net>
@dominiklohmann dominiklohmann enabled auto-merge May 12, 2023 08:39
@dominiklohmann dominiklohmann disabled auto-merge May 12, 2023 09:17
@dominiklohmann dominiklohmann merged commit 366b4c2 into main May 12, 2023
@dominiklohmann dominiklohmann deleted the topic/rebuild-fixes-remaining-counter branch May 12, 2023 09:17
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