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 reloader error message to only print on actual error #5066

Merged
merged 1 commit into from
Aug 31, 2017

Conversation

vjsamuel
Copy link
Contributor

Error message for runnerFactory.Create(c) should only be printed when there is no other runner for the same config that is already active.

When there is a runner active for a prospector, log prospector would return:

2017/08/31 09:17:53.951071 registrarcontext.go:31: ERR Error creating prospector: Can only start a prospector when all related states are finished: {Id: Finished:false Fileinfo:0xc420491ba0 Source:/var/lib/docker/containers/3108a14952a84074e6a28eeb8af17348860cd26f0b40550cd18ac3883570712f/3108a14952a84074e6a28eeb8af17348860cd26f0b40550cd18ac3883570712f-json.log Offset:51008 Timestamp:2017-08-31 09:17:43.943364786 +0000 UTC TTL:-1ns Type:log FileStateOS:310155-2049}

this being printed each time is incorrect as the prospector is already running and is not being reloaded each time. the error should be printed only if there is no active runner and a factory.Create fails.

@elasticmachine
Copy link
Collaborator

Can one of the admins verify this patch?

@vjsamuel vjsamuel force-pushed the fix_reloader_error branch from 8f9bc30 to fcb727a Compare August 31, 2017 09:30
Copy link
Contributor

@ruflin ruflin left a comment

Choose a reason for hiding this comment

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

Thanks for fixing. I think there is even somewhere a Github issue for that.

Waiting for green.

@ruflin
Copy link
Contributor

ruflin commented Aug 31, 2017

jenkins, test it

@ruflin ruflin merged commit 8aebab9 into elastic:master Aug 31, 2017
@vjsamuel vjsamuel deleted the fix_reloader_error branch August 31, 2017 19:53
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.

4 participants