-
Notifications
You must be signed in to change notification settings - Fork 525
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
Surface config parsing error under EA managed mode #14574
Surface config parsing error under EA managed mode #14574
Conversation
This pull request does not have a backport label. Could you fix it @carsonip? 🙏
|
|
This reverts commit 817b840.
By wrapping reloader errors in a way that EA manager understands (i.e. in a MultiError of UnitError), newRunner initialization errors, including config parsing errors, will be surfaced and logged. (cherry picked from commit 1b21d1d)
By wrapping reloader errors in a way that EA manager understands (i.e. in a MultiError of UnitError), newRunner initialization errors, including config parsing errors, will be surfaced and logged. (cherry picked from commit 1b21d1d) # Conflicts: # go.mod # go.sum
By wrapping reloader errors in a way that EA manager understands (i.e. in a MultiError of UnitError), newRunner initialization errors, including config parsing errors, will be surfaced and logged. (cherry picked from commit 1b21d1d) Co-authored-by: Carson Ip <[email protected]>
…14574) (#14718) * Surface config parsing error under EA managed mode (#14574) By wrapping reloader errors in a way that EA manager understands (i.e. in a MultiError of UnitError), newRunner initialization errors, including config parsing errors, will be surfaced and logged. (cherry picked from commit 1b21d1d) # Conflicts: # go.mod # go.sum * Resolve conflict --------- Co-authored-by: Carson Ip <[email protected]> Co-authored-by: Carson Ip <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
@mergify backport 8.17 |
✅ Backports have been created
|
By wrapping reloader errors in a way that EA manager understands (i.e. in a MultiError of UnitError), newRunner initialization errors, including config parsing errors, will be surfaced and logged. (cherry picked from commit 1b21d1d)
By wrapping reloader errors in a way that EA manager understands (i.e. in a MultiError of UnitError), newRunner initialization errors, including config parsing errors, will be surfaced and logged. (cherry picked from commit 1b21d1d) Co-authored-by: Carson Ip <[email protected]>
…-with-main * upstream/main: (100 commits) feat: bump beats to current main (elastic#14781) build(deps): bump github.com/elastic/elastic-agent-client/v7 from 7.16.0 to 7.17.0 (elastic#14757) PGO: Update default.pgo from benchmarks https://github.com/elastic/apm-server/actions/runs/12024199004/attempts/1. (elastic#14734) build(deps): bump slackapi/slack-github-action from 1.27.0 to 2.0.0 in the github-actions group (elastic#14656) build(deps): bump the otel group with 3 updates (elastic#14746) build(deps): bump the otel group across 1 directory with 4 updates (elastic#14681) testing: remove missing Make target dep (elastic#14523) build(deps): bump the dependencies group in /systemtest with 3 updates (elastic#14731) build(deps): bump chainguard/static in /packaging/docker (elastic#14732) build(deps): bump github.com/stretchr/testify from 1.9.0 to 1.10.0 (elastic#14733) chore: Update to elastic/beats@4278366ab032 (elastic#14725) changelog: add 8.15.5 entry (elastic#14720) chore: Update to elastic/beats@06ba17caf9ed (elastic#14711) Surface config parsing error under EA managed mode (elastic#14574) release-automation: update changelog template to add bug fixes section (elastic#14693) PGO: Update default.pgo from benchmarks https://github.com/elastic/apm-server/actions/runs/11946993444/attempts/1. (elastic#14699) changelog: add changelog entry for 8.16.1 (elastic#14690) chore: Update k8s stack yaml files (elastic#14686) docs: update release doc around documentation PR (elastic#14694) terraform: Use non-deprecated deployment template (elastic#14682) ...
* feature/support-8.x-with-main: (196 commits) support github label backport chore it should be main feat: bump beats to current main (elastic#14781) build(deps): bump github.com/elastic/elastic-agent-client/v7 from 7.16.0 to 7.17.0 (elastic#14757) PGO: Update default.pgo from benchmarks https://github.com/elastic/apm-server/actions/runs/12024199004/attempts/1. (elastic#14734) build(deps): bump slackapi/slack-github-action from 1.27.0 to 2.0.0 in the github-actions group (elastic#14656) build(deps): bump the otel group with 3 updates (elastic#14746) build(deps): bump the otel group across 1 directory with 4 updates (elastic#14681) testing: remove missing Make target dep (elastic#14523) build(deps): bump the dependencies group in /systemtest with 3 updates (elastic#14731) build(deps): bump chainguard/static in /packaging/docker (elastic#14732) build(deps): bump github.com/stretchr/testify from 1.9.0 to 1.10.0 (elastic#14733) chore: Update to elastic/beats@4278366ab032 (elastic#14725) changelog: add 8.15.5 entry (elastic#14720) chore: Update to elastic/beats@06ba17caf9ed (elastic#14711) Surface config parsing error under EA managed mode (elastic#14574) release-automation: update changelog template to add bug fixes section (elastic#14693) PGO: Update default.pgo from benchmarks https://github.com/elastic/apm-server/actions/runs/11946993444/attempts/1. (elastic#14699) changelog: add changelog entry for 8.16.1 (elastic#14690) ...
Hi @carsonip, I only get the error message shown below when testing for these changes. The main concern I have is the
Steps Used
Thanks @1pkg for the help on this |
8.16.1 is not a version that contains this fix, but I've confirmed with @rubvs offline that the apm-server binary is swapped to 8.17 for testing.
The log you see is expected. The source is EA because apm-server returns an error to EA (over grpc), and EA is the one responsible for reporting a failure. This log line confirms the bug fix is working as intended. |
Motivation/summary
By wrapping reloader errors in a way that EA manager understands (i.e. in a MultiError of UnitError), newRunner initialization errors, including config parsing errors, will be surfaced and logged.
Checklist
- [ ] Update CHANGELOG.asciidocI expect this to go into 8.17 first, then 8.16, but there may be uncertainty around this. We can add changelog before the release.How to test these changes
Start apm-server in EA managed mode (e.g. on ESS), pass in an invalid integration policy, e.g. setting
apm-server.rum.response_headers
to a string instead of a list. Check that in fleet UI that EA input unit has failed. Check that an error is logged.Related issues
Fixes #14560