-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[Autodiscover] Handle input-not-finished errors in config reload #20915
Conversation
Signed-off-by: chrismark <chrismarkou92@gmail.com>
Signed-off-by: chrismark <chrismarkou92@gmail.com>
Pinging @elastic/integrations-platforms (Team:Platforms) |
💔 Build FailedExpand to view the summary
Build stats
Test stats 🧪
Steps errorsExpand to view the steps failures
Log outputExpand to view the last 100 lines of log output
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks for fixing this. Only a question that can be ignored if you have good reasons 🙂
…stic#20915) (cherry picked from commit 35e6b60)
…rrors in config reload (#20928)
…ne-2.0 * upstream/master: [Metricbeat][test] Disable ec2 flaky test (elastic#20959) Check if tracer is active before starting a transaction (elastic#20852) [Elastic Agent] Add support for variable replacement from providers (elastic#20839) Only request wildcard expansion for hidden indices if supported (elastic#20938) [Ingest Manager] New agent structure (symlinks) (elastic#20400) [Ingest Manager] Print a message confirming shutdown (elastic#20948) Skip flaky test on unix input (elastic#20942) [Ingest Manager] Align introspect-inspect naming in code (elastic#20952) [Filebeat][zeek] Map new x509 fields for ssl module (elastic#20927) [CI] fix regression with variable name (elastic#20930) [Autodiscover] Handle input-not-finished errors in config reload (elastic#20915) [Ingest Manager] Remove Success from fleet contract (elastic#20449)
@ChrsMark I am confused by this change. I just ended up with this problem: 2020-09-24T13:04:39.398Z ERROR [autodiscover] cfgfile/list.go:96 Error creating runner from config: Can only start an input when all related states are finished: {Id:2069814-64771 Finished:false Fileinfo:0xc42018c340 Source:/var/log/containers/serverr-57cd7746ff-pzzlg_default_server-e48194c34dcac07db908e93c44ae34d5130a28ae79766b7645ff3686ff66ef4d.log Offset:12941 Timestamp:2020-09-24 13:04:38.095112478 +0000 UTC m=+1743.843569158 TTL:-1ns Type:log Meta:map[] FileStateOS:2069814-64771} I have no idea what this means, but at least I glad that as a user I could run
|
Hi! First of all this "error" is sth that has to do with the state of files that are being harvested. It should go away once the harvesting is completed and Autodiscover will be able to start the input again. So imagine that this error could be ignored. This is the reason we turned this error from ERROR level to DEBUG level. This change will be landed with |
What does this PR do?
This PR adds special error handling in config reload flow to handle state errors specially by not logging in ERROR level to avoid confusion in logging.
Current state:
Patch:
Why is it important?
To avoid confusion in logging because of a non actual ERROR is logged as an ERROR. We need to log with lower severity this kind of errors.
How to test this PR locally
Using testing steps from #20305.
Related issues