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

Exit early on invariants change #743

Merged

Conversation

mmaslankaprv
Copy link
Member

@mmaslankaprv mmaslankaprv commented Mar 3, 2021

In order to make the configuration invariant change detector effective we have to exit early if any of the invariants have changed. Previous approach lead us to the situation in which some services were already started and they accessed invalid configuration causing a segfault.

Fixes: #742

Checklist

When referencing a related issue, remember to migrate duplicate stories from the
external tracker. This is not relevant for most users.

In order to make the configuration invariant change detector effective
we have to exit early if any of the invariants have changed. Previous
approach lead us to the situation in which some services were already
started and they accessed invalid configuration causing a segfault.

Fixes: redpanda-data#742

Signed-off-by: Michal Maslanka <michal@vectorized.io>
Partition allocator, when updating its internal state, assumes that node with given id exists (this is pre nodes decommissioning). Added vassert validating this assumption.

Signed-off-by: Michal Maslanka <michal@vectorized.io>
Copy link
Contributor

@emaxerrno emaxerrno left a comment

Choose a reason for hiding this comment

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

LGTM

@mmaslankaprv mmaslankaprv merged commit a5ed5d0 into redpanda-data:dev Mar 3, 2021
@emaxerrno emaxerrno mentioned this pull request Mar 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

redpanda: display failed configuration invariants rather than backtrace
2 participants