-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Relax limit on max string size #96031
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
Conversation
Jackson 2.15 introduced a (rough) maximum limit on string length. This commit relaxes that limit to its maximum size, leaving document size constraints to other existing limits in the system. We can revisit whether string length within a document should be independently constrainted later.
Pinging @elastic/es-core-infra (Team:Core/Infra) |
I've marked this as a non-issue because it will target 8.8.0 where this regression was introduced. |
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.
LGTM
💚 Backport successful
|
Jackson 2.15 introduced a (rough) maximum limit on string length. This commit relaxes that limit to its maximum size, leaving document size constraints to other existing limits in the system. We can revisit whether string length within a document should be independently constrainted later.
Jackson 2.15 introduced a (rough) maximum limit on string length. This commit relaxes that limit to its maximum size, leaving document size constraints to other existing limits in the system. We can revisit whether string length within a document should be independently constrainted later.
## Summary Closes #156901, #156902, and #156106 As Tim discovered and mentioned in 156901 - these suite of tests were skipped because of a new limit that was reverted in es elastic/elasticsearch#96031 Tests pass without any problems now.
## Summary Closes #156901, #156902, and #156106 As Tim discovered and mentioned in 156901 - these suite of tests were skipped because of a new limit that was reverted in es elastic/elasticsearch#96031 Tests pass without any problems now.
I'm wondering if this limit is taken into account for the ingest attachment plugin. According to the discussion here: https://discuss.elastic.co/t/345687 it seems that Jackson is still using its default limit of 5mb (with jackson 2.15.0):
Do we need to also modify some code in the ingest pipeline plugin? BTW, Jackson has modified this limit to 20mb in 2.15.1. May be we should upgrade Jackson? 2.15.3 seems to be the latest stable version... |
Hi, @dadoonet please cut an issue if this remains a problem. It's hard for us to track issues if they exist as comments on a PR several months after it's been merged. |
Remove the rough limit on string length from Jackson 2.15. The limit was already relaxed for JSON in elastic#96031, this extends that change to other XContent types. Refs: elastic#96031
Remove the rough limit on string length from Jackson 2.15. The limit was already relaxed for JSON in elastic#96031, this extends that change to other XContent types. Refs: elastic#96031 Fixes: elastic#104009 (cherry picked from commit a359b1f)
Was it backported to Elasticsearch 7 as well? Could you please backport it, please? |
Jackson 2.15 introduced a (rough) maximum limit on string length. This commit relaxes that limit to its maximum size, leaving document size constraints to other existing limits in the system. We can revisit whether string length within a document should be independently constrained later.
Fixes #96036