Skip to content

Cherry-pick #25854 to 7.x: Fix invalid log level sent to endpoint #25993

Merged
michalpristas merged 7 commits intoelastic:7.xfrom
michalpristas:backport_25854_7.x
May 31, 2021
Merged

Cherry-pick #25854 to 7.x: Fix invalid log level sent to endpoint #25993
michalpristas merged 7 commits intoelastic:7.xfrom
michalpristas:backport_25854_7.x

Conversation

@michalpristas
Copy link
Copy Markdown
Contributor

@michalpristas michalpristas commented May 28, 2021

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

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

@michalpristas michalpristas self-assigned this May 28, 2021
@botelastic botelastic Bot added the needs_team Indicates that the issue/PR needs a Team:* label label May 28, 2021
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/agent (Team:Agent)

@botelastic botelastic Bot removed the needs_team Indicates that the issue/PR needs a Team:* label label May 28, 2021
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: Pull request #25993 opened

  • Start Time: 2021-05-28T15:08:20.314+0000

  • Duration: 87 min 32 sec

  • Commit: a969084

Test stats 🧪

Test Results
Failed 0
Passed 6860
Skipped 24
Total 6884

Trends 🧪

Image of Build Times

Image of Tests

💚 Flaky test report

Tests succeeded.

Expand to view the summary

Test stats 🧪

Test Results
Failed 0
Passed 6860
Skipped 24
Total 6884

@michalpristas michalpristas merged commit f006a43 into elastic:7.x May 31, 2021
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.

2 participants