Skip to content
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

Exceptions thrown in CompiledPipeline constructor lose stack trace context #16139

Open
robbavey opened this issue May 3, 2024 · 0 comments
Open

Comments

@robbavey
Copy link
Member

robbavey commented May 3, 2024

Any Exceptions in the CompiledPipeline constructor during the input, filter and output setup will be re-thrown, with the message from the causing Exception, included, but with the stack trace from that Exception is lost, losing context from exactly where the Exception originates from.

For example, a codec throwing an error in the register method of a codec, will result in an error like

[ERROR][logstash.agent ] Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:test, 
:exception=>"Java::JavaLang::IllegalStateException", :message=>"Unable to configure plugins: (ArgumentError) 
wrong number of arguments (given 4, expected 1..3)", :backtrace=>["org.logstash.config.ir.CompiledPipeline.<init>
(CompiledPipeline.java:120)", "org.logstash.execution.AbstractPipelineExt.initialize(AbstractPipelineExt.java:186)"

giving no hint as to where this issue occurred.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant