-
Notifications
You must be signed in to change notification settings - Fork 213
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
[BUG] Data Prepper process threads stop when processors throw exceptions #4103
Comments
I propose a couple of solutions:
We can have a try-catch around this code: data-prepper/data-prepper-core/src/main/java/org/opensearch/dataprepper/pipeline/ProcessWorker.java Lines 129 to 136 in 2be8166
Lines 63 to 85 in cf86674
|
This was referenced Feb 19, 2024
github-project-automation
bot
moved this from Unplanned
to Done
in Data Prepper Tracking Board
Feb 20, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When a processor throws an exception, the current Data Prepper processor thread stops processing. Data Prepper is not shutting down the pipeline, nor is it attempting to restart the thread.
To Reproduce
Create a pipeline with a processor that will throw an exception. The
date
processor throws an exception when thedate_when
value has in valid expression.Run Data Prepper and send data through.
The threads stop.
Expected behavior
There are two things I'd expect:
Analysis
The exact cause is this line:
data-prepper/data-prepper-core/src/main/java/org/opensearch/dataprepper/pipeline/ProcessWorker.java
Lines 91 to 93 in 2be8166
The
ProcessWorker
catches the exception. Then theProcessWorker::run
method exits. After this, the thread remains, but it is waiting on a task to run.You can see that the thread remains with a thread dump:
Environment (please complete the following information):
Data Prepper 2.6.1
The text was updated successfully, but these errors were encountered: