Open ketanv3 opened 9 months ago
Here's the output of the search response that failed to parse due to its very large size: SearchResponse_testFromXContentWithUnregisteredSearchExtBuilders.json
This happens due to very deeply nested aggregations in the search response. Test aggregations are created recursively up to some maximum depth (here), which can lead to exponentially large payloads on rare occasions. We can lower the maximum depth from 5 to 4, which should help us not go past the 3 MB parsing limit for YAML.
Describe the bug The following test cases are flaky:
To Reproduce It happens when the search response is too large for the YAML parser (3 MB limit).
Expected behavior The tests should always pass
Plugins Standard distribution
Screenshots N/A
Host/Environment (please complete the following information) CI (Jenkins)
Additional context Failing build: https://build.ci.opensearch.org/job/gradle-check/30833/