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 restart_on_change behavior #1111

Closed
wants to merge 1 commit into from
Closed

Conversation

bovy89
Copy link

@bovy89 bovy89 commented Feb 7, 2021

restart_on_change parameter is ignored. If config file is modified, the class elasticsearch::config always notify elasticsearch::service and the elasticsearch service is being restarted

@elasticmachine
Copy link

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

@cla-checker-service
Copy link

cla-checker-service bot commented Feb 7, 2021

💚 CLA has been signed

@bovy89
Copy link
Author

bovy89 commented Feb 8, 2021

Author of the following commits did not sign a Contributor Agreement:
ad68b16

Please, read and sign the above mentioned agreement if you want to contribute to this project

done

@crazymind1337
Copy link
Member

Works for me. Can we have this released soon?

@shamil
Copy link
Contributor

shamil commented Sep 2, 2021

I've experienced exactly same issue, my several clusters began to restart and caused us short hiccups until all nodes restarted.
@jmlrt @mgreau @fatmcgav @ry-wiz can you please check this, and if possible merge and release a bugfix. The module had several bug fixes merged, but was never released any point release.

@ghoneycutt
Copy link
Member

Closing in favor of #1114

@ghoneycutt ghoneycutt closed this Dec 1, 2021
@shamil
Copy link
Contributor

shamil commented Dec 1, 2021

@ghoneycutt I think #1114 is too wide, any reason it was merged?
This PR is the proper one in my opinion. Each resource in elasticsearch::config use $_notify_service and based on that it decides if service should be reloaded or not. If #1114 is what you prefer instead, then we need to clean up all the places which have $_notify_service specified.

# Should we restart Elasticsearch on config change?
$_notify_service = $elasticsearch::restart_config_change ? {
true => Service[$elasticsearch::service_name],
false => undef,
}

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.

5 participants