-
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
[WIP] Ignores ErrInputNotFinished when updating config #31928
Conversation
Ignores `common.InputNotFinished` when running undre Elastic-Agent and updating configuration. A few refactorings were needed: * "github.com/hashicorp/go-multierror" was replaced by "github.com/joeshaw/multierror" that is already used by other parts of Beats. This makes the error wrapping more consistent * common.InputNotFinished implements the `Is` method, making it compatible with `errors.Is`.
💔 Build Failed
Expand to view the summary
Build stats
Test stats 🧪
Steps errorsExpand to view the steps failures
|
@@ -85,7 +85,7 @@ func (r *RunnerList) Reload(configs []*reload.ConfigWithMeta) error { | |||
for hash, runner := range stopList { | |||
r.logger.Debugf("Stopping runner: %s", runner) | |||
delete(r.runners, hash) | |||
go runner.Stop() | |||
runner.Stop() // we need to wait this to finish before starting new inputs |
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.
Do we? It did not fix the problem we had, so I do not want to change this to be blocking. Why "fix" something that is not broken?
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.
Indeed.
This PR still a draft of a draft, it still needs cleaning up. If we decide to keep working on that I'll keep it async.
076e702 contains a HUGE amount of debug code, it's quite messy. If I keep working on this PR, I'll clean up everything before requesting a review. |
DO NOT REVIEW
I added a bunch of debug and experiment code here just to to lose it for the time being.
Current status
I'm creating this PR very early to see if any integration test will break.
Ignores
common.InputNotFinished
when running undre Elastic-Agent andupdating configuration.
A few refactorings were needed:
"github.com/joeshaw/multierror" that is already used by other parts of
Beats. This makes the error wrapping more consistent
Is
method, making itcompatible with
errors.Is
.What does this PR do?
Why is it important?
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Author's Checklist
How to test this PR locally
Related issues
Use cases
Screenshots
Logs