OpenSearch/docs/reference/sql
Bogdan Pintea 2ec53ea7c4 Abort sorting in case of local agg sort queue overflow (#65687)
In case the local agg sorter queue gets full and no limit has been provided,
the local sorter will now erroneously call the failure callback for every
single row in the original rowset that's left over the local queue limit
(instead for just the first one).  The failure response is dispatched in any
case, so this is relatively harmless.  The sorter continues iterating on the
original response fetching subsequent pages. In case of correct Elasticsearch
behaviour, this is also harmless, it'll just trigger a number of internal
exceptions. However, in case of a pagination defect in Elasticsearch (like
GH#65685, where the same search_after is returned), this will result in an
effective spin loop, potentially rendering eventually the node unresponsive.

This PR simply breaks both the inner loop iterating over the current unsorted
rowset, as well as the outer one, iterating over the left pages.

It also fixes an outdated documentation limitation.

(cherry picked from commit 638402c387faf79bba38fcc95f371a73146efc0b)
2020-12-07 11:32:41 +01:00
..
appendix SQL: Implement TOP as an alternative to LIMIT (#57428) (#57507) 2020-06-02 10:53:42 +02:00
endpoints SQL: Document Maven Central as a JDBC repository (#62618) 2020-09-21 13:04:43 +02:00
functions SQL: Escaped wildcard (*) not accepted in LIKE (#63428) 2020-10-13 10:47:03 -04:00
language [DOCS] Combine keyword family docs (#61662) (#61813) 2020-09-01 15:32:56 -04:00
concepts.asciidoc [DOCS] Replace Wikipedia links with attribute (#61171) (#61209) 2020-08-17 11:27:04 -04:00
getting-started.asciidoc [DOCS] Reformat snippets to use two-space indents (#59973) (#59994) 2020-07-21 15:49:58 -04:00
index.asciidoc SQL: [Tests] Move JDBC integration tests to new module (#56872) (#57072) 2020-05-22 17:49:36 +02:00
limitations.asciidoc Abort sorting in case of local agg sort queue overflow (#65687) 2020-12-07 11:32:41 +01:00
overview.asciidoc [DOCS] Swap `[float]` for `[discrete]` (#60134) 2020-07-23 12:42:33 -04:00
security.asciidoc [DOCS] Swap `[float]` for `[discrete]` (#60134) 2020-07-23 12:42:33 -04:00