-
-
Notifications
You must be signed in to change notification settings - Fork 812
Non-blocking parsing issue #389
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
Comments
No immediate thoughts, sounds like a possible bug. I will look into this, and timing is good -- hoping to close 2.9.0 this week. |
Ok thanks, our code triggering the parsing is here. |
I think I would need a way to reproduce the problem -- possibly just input document, although probably related to how input is accessed (that is, buffer boundaries). |
It seems indeed related to how input is accessed, and I am not sure how to reproduce it in another way than running the integration test of this repro project I provided. Any chance you could use it to debug how Jackson is handling the data? |
Maybe more details : you should be able to debug test unit test in Eclipse or IDEA with just importing the project. If you prefer command line, you can just run the app with |
After digging into this issue it seems it was on Spring side, and we have fixed it. Jackson side seems to be ok so feel free to release 2.9.0 ;-) |
@sdeleuze Ah ok. Sorry I missed part of running the test -- wasn't sure if the whole project was to be run etc. But fortunately you managed to locate it; much appreciated. Hope to proceed with the release, after going once more over projects to see if I'm forgetting anything critical wrt API. |
When doing some integration tests before releasing Spring Framework 5.0 RC3 expected to be released tomorrow, we found some errors that could be related to the non-blocking parsing introduced by Jackson
2.9.0.pr4
via issue #57 that we leverage. The error could be on Spring side, but since it seems to be at byte level it is maybe on Jackson side. In any case, some guidance would really help us. It seems to affect the last fields of an object to deserialize.This issue can be reproduced with this project: https://github.com/sdeleuze/demo-java-jackson-non-blocking/tree/master. The test works with
springBootVersion = '2.0.0.M2'
which does not use non-blocking parsing and fails withspringBootVersion = '2.0.0.BUILD-SNAPSHOT'
which uses non-blocking parsing.The error we have with non-blocking parser is the following like if we missed some data:
In MiXiT application, the issue is visible in almost all JSON based integration unit tests, including with errors like that:
Any thoughts?
The text was updated successfully, but these errors were encountered: