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

config: fix hanging alert about missing name #9316

Merged
merged 1 commit into from
Oct 27, 2023

Conversation

Serpentian
Copy link
Contributor

@Serpentian Serpentian commented Oct 27, 2023

At the last itaration of review it was decided to throw an alerts, when no UUID was passed to config and name is not set in _cluster.

This leads to alerts, thrown during replicaset bootstrap. However, _cluster:on_replace trigger wasn't updated for that change, it asssumed that when insert of a new replica is done, no alerts was thrown.

Let's fix the behavior of on_replace trigger so that it deletes alerts as soon as replica joined with name.

Follow-up #8978

At the last itaration of review it was decided to throw an alerts,
when no UUID was passed to config and name is not set in _cluster.

This leads to alerts, thrown during replicaset bootstrap. However,
_cluster:on_replace trigger wasn't updated for that change, it
asssumed that when insert of a new replica is done, no alerts was
thrown.

Let's fix the behavior of on_replace trigger so that it deletes
alerts as soon as replica joined with name.

Follow-up tarantool#8978

NO_DOC=bugfix
NO_TEST=<already tested>
NO_CHANGELOG=bugfix
@coveralls
Copy link

Coverage Status

coverage: 86.309% (-0.008%) from 86.317% when pulling 42ff917 on Serpentian:gh-8978-fix into f399cc7
on tarantool:master
.

Copy link
Member

@Totktonada Totktonada left a comment

Choose a reason for hiding this comment

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

Here we drop the alert when the new instance is joined. The alert appears, because the instance was added into the config beforehand. OK, got it. LGTM.

@Totktonada Totktonada added the full-ci Enables all tests for a pull request label Oct 27, 2023
@Totktonada Totktonada merged commit c2c8286 into tarantool:master Oct 27, 2023
106 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
full-ci Enables all tests for a pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants