-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Update to jackson 2.8.1 #18939
Update to jackson 2.8.1 #18939
Conversation
JsonStreamContext context = base.getOutputContext(); | ||
if (context instanceof JsonWriteContext) { | ||
((JsonWriteContext) context).writeValue(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we put an assertions that it actually is a JsonWriteContext?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure
2.8.0 has been released: https://github.com/FasterXML/jackson/wiki/Jackson-Release-2.8 |
d07cb8f
to
d7fba30
Compare
2.8.1 has been released: https://github.com/FasterXML/jackson/wiki/Jackson-Release-2.8.1 |
@s1monw Do you want to have another look? |
assertEquals("\"responses\"[{\"error\":{\"root_cause\":[{\"type\":\"illegal_state_exception\",\"reason\":\"foobar\"}],\"type\":\"illegal_state_exception\",\"reason\":\"foobar\"},\"status\":500},{\"error\":{\"root_cause\":[{\"type\":\"illegal_state_exception\",\"reason\":\"baaaaaazzzz\"}],\"type\":\"illegal_state_exception\",\"reason\":\"baaaaaazzzz\"},\"status\":500}]", | ||
builder.endObject(); | ||
|
||
assertEquals("{\n" + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pretty printing is difficult, not sure if it works on windows with trailing whiltespaces / new lines etc?
left some comments @tlrx thanks for doing this |
@s1monw Thanks for your review! I removed all pretty printings. |
Rally benchmarks shows no performance regression. I'd like to merge it soon - can I go @s1monw ? |
LGTM |
This commit updates Jackson to the 2.8.1 version, which is more strict when it comes to build objects. It also adds the snakeyaml dependency that was previously shaded in jackson libs. It also closes elastic#18076
787ed6a
to
841d5a2
Compare
Thanks @s1monw ! |
See elastic#19773 (comment) Was introduced with elastic#18939
Great need this one too +1 |
Jackson 2.8.1 has been released. This PR updates the version to the latest version of Jackson which fix #18076 and is also more strict when it build objects.