Skip to content

Properly indicate failure in the rebuild command #2466

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 1 commit into from
Jul 27, 2022

Conversation

dominiklohmann
Copy link
Member

@dominiklohmann dominiklohmann commented Jul 26, 2022

The rebuild command triggered an assertion on failure in debug modes when splitting old heterogeneous partitions, and it turned out that we did not properly handle the failure case. This changes the rebuild command to show an error if it did not succeed, detailing to the user what went wrong.

📝 Checklist

  • All user-facing changes have changelog entries.
  • The changes are reflected on vast.io, if necessary.
  • The PR description contains instructions for the reviewer, if necessary.

🎯 Review Instructions

I've attached a small database with one heterogeneous partitions that can be used for reproducing the error. I did this by modifying the apply handler of the index to always return an error.

📁 vast.db.archive.zip

@dominiklohmann dominiklohmann added the bug Incorrect behavior label Jul 26, 2022
@dominiklohmann dominiklohmann requested a review from lava July 26, 2022 09:26
The rebuild command triggered an assertion on failure in debug modes when
splitting old heterogeneous partitions, and it turned out that we did not
properly handle the failure case. This changes the rebuild command to show an
error if it did not succeed, detailing to the user what went wrong.
@dominiklohmann dominiklohmann force-pushed the story/sc-35816/rebuild-indicator-failure branch from 90d5535 to a500611 Compare July 26, 2022 09:27
@dominiklohmann dominiklohmann requested a review from patszt July 26, 2022 09:34
@dominiklohmann dominiklohmann merged commit d89fcbf into master Jul 27, 2022
@dominiklohmann dominiklohmann deleted the story/sc-35816/rebuild-indicator-failure branch July 27, 2022 09:37
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