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 issue that new prospector was not reloaded on conflict #4128

Merged
merged 1 commit into from
May 5, 2017

Conversation

ruflin
Copy link
Member

@ruflin ruflin commented Apr 27, 2017

A new prospector cannot be started if one of the states he starts with is not set to Finished. In this case the prospector should wait until the old prospector is shutdown and try again on the next reload. This did not work as intended so far because if loading failed, the running prospector was stopped and the non running was not started again on the next run. This change should fix it.

See also https://discuss.elastic.co/t/error-when-reloading-prospectors-for-filebeat/83082/5

Closes #4133

@ruflin ruflin added bug Filebeat Filebeat in progress Pull request is currently in progress. needs tests labels Apr 27, 2017
@ruflin
Copy link
Member Author

ruflin commented Apr 28, 2017

See #4133

@ruflin ruflin added review and removed in progress Pull request is currently in progress. labels Apr 28, 2017
@ruflin ruflin changed the title Do not stop running prospector on error Fix issue that new prospector was not reloaded on conflict Apr 28, 2017
@ruflin ruflin force-pushed the reload-fix branch 2 times, most recently from 350a03b to 6605b7f Compare April 28, 2017 14:39
@tsg
Copy link
Contributor

tsg commented May 2, 2017

jenkins, retest it

@tsg
Copy link
Contributor

tsg commented May 2, 2017

WFG.

A new prospector cannot be started if one of the states he starts with is not set to Finished. In this case the prospector should wait until the old prospector is shutdown and try again on the next reload. This did not work as intended so far because if loading failed, the running prospector was stopped and the non running was not started again on the next run. This change should fix it.

See also https://discuss.elastic.co/t/error-when-reloading-prospectors-for-filebeat/83082/5

Closes elastic#4133
@ruflin ruflin added needs_backport PR is waiting to be backported to other branches. and removed needs tests labels May 4, 2017
@tsg tsg merged commit d98e54e into elastic:master May 5, 2017
ruflin added a commit to ruflin/beats that referenced this pull request May 5, 2017
)

A new prospector cannot be started if one of the states he starts with is not set to Finished. In this case the prospector should wait until the old prospector is shutdown and try again on the next reload. This did not work as intended so far because if loading failed, the running prospector was stopped and the non running was not started again on the next run. This change should fix it.

See also https://discuss.elastic.co/t/error-when-reloading-prospectors-for-filebeat/83082/5

Closes elastic#4133
(cherry picked from commit d98e54e)
@ruflin ruflin deleted the reload-fix branch May 8, 2017 13:12
@ruflin ruflin removed the needs_backport PR is waiting to be backported to other branches. label May 8, 2017
tsg pushed a commit that referenced this pull request May 10, 2017
…4227)

A new prospector cannot be started if one of the states he starts with is not set to Finished. In this case the prospector should wait until the old prospector is shutdown and try again on the next reload. This did not work as intended so far because if loading failed, the running prospector was stopped and the non running was not started again on the next run. This change should fix it.

See also https://discuss.elastic.co/t/error-when-reloading-prospectors-for-filebeat/83082/5

Closes #4133
(cherry picked from commit d98e54e)
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.

Filebeat: Live Reload incorrectly stops prospectors
2 participants