-
Notifications
You must be signed in to change notification settings - Fork 354
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]: NullPointerException on pipelines with transforms receiving more than one flow in input #3056
Comments
…eiving more than one flow in input
After months of tries looking for a reproduction path we definitely were able to get it. So let me try to write down something interesting to share with the community so that we can try to elaborate on this. First thing first. We were able to reproduce the problem by putting the system under light load (that means if we evaluate the 5min load average on linux system we are considering load > 2). We also already said that this happens only for pipelines where we have more than one hop that is entering a target transform. Therefore
As I said the issue randomly happens but after waiting for a while it happened. It is not clear yet were the problem is but it happened. I though it was a good idea start talking about that so I wanted to share everything till now. I attached to this comment the sample pipeline and the two logs related to a good and a failed execution. If someone want to help in investigating about that I'm very happy for that. You can also take a look at the changes made to Remember that this issue was inherited from Kettle because we incurred into this also at the time we were using it. I will be back soon with other comments, let me go back to work hard on solving this issue. |
I ran hundreds of thousands of iterations of the simple test (see above Running on Ubuntu 22.04.3 LTS:
Can you let me know which Run Configuration you're using to reproduce, its settings? |
Tests running at around 1200% CPU (100% on 12 cores). |
Reproduction path for me: run the following loop in 5 terminals and wait a few hours. One or more of the terminal tabs will be titled "sleep" and they'll show the NPE stack trace:
|
Issue #3056 : NullPointerException on pipelines
Apache Hop version?
2.5.0 and any previous version
Java version?
openjdk-11
Operating system
Linux
What happened?
We are experiencing a NullPointerException on pipelines where we have transforms that receives as input more than one flow.
Let me summarize below some of the point that could be interesting for our investigation:
getInputRow()
method is involved in a complex inline instruction (likedata.fieldnrs[i] = getInputRowMeta().indexOfValue(meta.getFieldName()[i]);
ordata.outputRowMeta = getInputRowMeta().clone();
) and that method returns nullThe fact that is a random problem makes it hard to reproduce and for this reason till now we were unable to catch it. We asked the customer some context data and we got the confirmation that the overall load of the server at the time of the issue is normal. The system isn't under severe stress
I post here some screenshots of the pipeline by putting in evidence the transforms that gives the issue
Issue Priority
Priority: 1
Issue Component
Component: Transforms
The text was updated successfully, but these errors were encountered: