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

Log config object deletions to replay log #8457

Merged
merged 1 commit into from Nov 10, 2020

Conversation

julianbrost
Copy link
Contributor

The initial config object sync for each new connection (in ApiListener::SendRuntimeConfigObjects()) only considers currently existing objects and has no way to pass the information that objects were deleted in the meantime.

This commit logs config object deletions to the replay log if required so that there is a chance that it will be propagated to nodes that were offline when the deletion happened.

Note that this can only be considered a workaround as the replay log might be pruned or could even be completely disabled. Also, there still seems to be a race-condition between the config sync and replay log of multiple new connections at the same time.

backport of #8455 for support/2.11

The initial config object sync for each new connection (in
`ApiListener::SendRuntimeConfigObjects()`) only considers currently
existing objects and has no way to pass the information that objects
were deleted in the meantime.

This commit logs config object deletions to the replay log if required
so that there is a chance that it will be propagated to nodes that were
offline when the deletion happened.

Note that this can only be considered a workaround as the replay log
might be pruned or could even be completely disabled. Also, there still
seems to be a race-condition between the config sync and replay log of
multiple new connections at the same time.
@icinga-probot icinga-probot bot added this to the 2.11.7 milestone Nov 9, 2020
@icinga-probot icinga-probot bot added area/api REST API area/distributed Distributed monitoring (master, satellites, clients) bug Something isn't working ref/NC labels Nov 9, 2020
@N-o-X N-o-X merged commit d80eb89 into support/2.11 Nov 10, 2020
@icinga-probot icinga-probot bot deleted the bugfix/replay-object-deletion-2.11 branch November 10, 2020 10:32
@Al2Klimov
Copy link
Member

@julianbrost Please forward-port this to v2.12.x.

@julianbrost
Copy link
Contributor Author

done: #8470

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/api REST API area/distributed Distributed monitoring (master, satellites, clients) bug Something isn't working ref/NC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants