Closed jgough closed 2 years ago
I created a PR to fix this problem. That being said, an input without an ID will not be testable, because the test definition will not be able to state the correct input_plugin
.
Aware that this will be untestable. When this happend it left the daemon socket file in place so I had to manually remove it which is not ideal as it didn't clean up properly after the unclean exit. Thanks for the PR!
@jgough The panic
and with this the issue, that the socket file as well as the other temporary files are not cleaned up, is intentional, because it is the programmers fault, if the daemon gets a config, where the Logstash config does not contain an ID
for every plugin. This is what is fixed by the PR.
@jgough If you like, you can checkout #135 , which contains the fixed version of github.com/breml/logstash-config, which should resolve this issue.
When running tests using daemon mode in Beta 1, with several pipelines including this one:
The daemon exited abruptly with this error:
Sadly I've been unable to reproduce this again so I can't provide more info on repro steps. If this stack trace is not helpful then feel free to close as not reproduceable.