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

fix(resources): fix resource lifecycle #9884

Merged
merged 2 commits into from Feb 2, 2023

Conversation

savonarola
Copy link
Contributor

@savonarola savonarola commented Feb 1, 2023

EMQX-8853

  • Do not resume all buffer workers on successful healthcheck. Previously after a successful healthcheck all buffer workers (for all resources) were resumed

  • Do not pass undefined state to resource healthcheck callback. If on_start callback never succeeded, the state of the resource is undefined. There is no sense to pass it to get_status callback.

@zmstone
Copy link
Member

zmstone commented Feb 1, 2023

could you add more description to the PR about why this change?
e.g. what the issues are there before this fix.

@zmstone
Copy link
Member

zmstone commented Feb 1, 2023

need a changelog because it affects the opensource edition too.

* do not resume all buffer workers on successful healthcheck
* do not pass undefined state to resource healthcheck callback
@savonarola savonarola marked this pull request as ready for review February 1, 2023 17:48
@savonarola savonarola requested review from a team and thalesmg as code owners February 1, 2023 17:48
zmstone
zmstone previously approved these changes Feb 2, 2023
@zmstone zmstone merged commit 13ef30c into emqx:release-50 Feb 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants