Repository navigation
[Backport 3.9] [Enhancement] Raise default structural limits for deserialization filter (#5826) - #5862
Conversation
…rialization filter (opensearch-project#5826) Raise the deserialization filter defaults to max_depth=150, max_refs=10000, max_bytes=65536, document the settings, and add regression tests. (cherry picked from commit 803ed31) Signed-off-by: Jialiang Liang <[email protected]>
PR Code Analyzer ❗AI-powered 'Code-Diff-Analyzer' found issues on commit 46529b0.
The table above displays the top 10 most important findings. Pull Requests Author(s): Please update your Pull Request according to the report above. Repository Maintainer(s): You can Thanks. |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
Codecov Report✅ All modified and coverable lines are covered by tests. ❌ Your project check has failed because the head coverage (62.86%) is below the target coverage (99.00%). You can increase the head coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## 3.9 #5862 +/- ##
=========================================
Coverage 62.86% 62.86%
Complexity 8782 8782
=========================================
Files 938 938
Lines 40145 40145
Branches 4519 4519
=========================================
Hits 25238 25238
Misses 14106 14106
Partials 801 801
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Description
Backport of #5826 to
3.9. #5721, which added these limits, is already on3.9, so this only raises the defaults:plugins.query.deserialization.max_depthplugins.query.deserialization.max_refsplugins.query.deserialization.max_bytesIt also documents the settings and adds the regression tests from #5826. See #5826 for how the defaults were sized.
The code and test changes cherry-pick cleanly and match #5826 exactly. The only conflict was in
docs/user/admin/settings.rst, where3.9has theplugins.query.partial_result.on_mapping_conflict.enabledsection at the same location. I kept that section and added the new one right after it, beforeplugins.query.buckets, which is where it sits onmain.Related Issues
Backport of #5826
Check List
--signoff.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.