Cherry-pick #25854 to 7.x: Fix invalid log level sent to endpoint #25993
Merged
michalpristas merged 7 commits intoelastic:7.xfrom May 31, 2021
Merged
Cherry-pick #25854 to 7.x: Fix invalid log level sent to endpoint #25993michalpristas merged 7 commits intoelastic:7.xfrom
michalpristas merged 7 commits intoelastic:7.xfrom
Conversation
[Elastic Agent] Fix invalid log level sent to endpoint (elastic#25854)
Contributor
|
Pinging @elastic/agent (Team:Agent) |
Contributor
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
Trends 🧪💚 Flaky test reportTests succeeded. Expand to view the summary
Test stats 🧪
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cherry-pick of PR #25854 to 7.x branch. Original message:
What does this PR do?
The issue is described here #25583 and happens only on low spec environments.
Difficult to reproduce locally. QA is usually successful with this.
I believe there's a race in read-write files in between enroll, run where FS is a bit slower than our process.
Similar issue was fixed here: #24504
Solving this by syncing config files after each write so changes are present on Filesystem immediately.
Why is it important?
Without this agent reports empty log level as desired to endpoint
Checklist
CHANGELOG.next.asciidocorCHANGELOG-developer.next.asciidoc.