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
Unexpected mvel update NullPointerException #5483
Comments
The good news: I can reproduce this successfully - thanks for the detailed instructions. The less good news is that it looks like a bug in MVEL's embedded ASM version: The bug manifests itself in that creating the document with availability=null works, but MVEL's ASM optimizer stumbles over the second update since it again contains availability=null. |
Great, I am glad that you have pinpointed the problem. Probably a typo in The MVEL source. But, yes, it's very strange that it happens only after a restart.. And also, why does removing an non-null value from both updates fixes everything? |
That is indeed weird, and I have no idea why it does not trip over the same bug. Nevertheless MVEL must be fixed first, then we can see where this goes. |
Fixed upstream in mvel/mvel@f61874a |
@ctrochalakis is it possible to test with master/1.x branch and report if it works for you? |
Note that @kimchy upgraded ES to MVEL 2.2.0, which was released after the f61... commit referenced by Holger. However, Holger's referenced bug remains open. I'm not sure what state the MVEL fix is in. |
No unfortunately it doesn't work with master I had to enable dynamic scripting for the test to run. |
I will close this for now, sadly, there is nothing we can further do on our side... . We do plan to replace mvel in the near future... . Maybe for now you can try a different language plugin. |
Hello,
We hit an interesting bug a few days ago with our testing cluster. It appears that if we do 2 consecutive updates to a document, right after an elasticsearch restart, the second update fails with
NullPointerException
. If we run the test script a second time (without restarting the server), the update succeeds.Our test script that demostrates the issue:
The bug is reproducible to all elasticsearch versions (0.90, 1.0, 1.1, master).
Some interesting points that we noticed:
updates
hash everything works.The text was updated successfully, but these errors were encountered: