Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Add query size limit #679

Merged
merged 3 commits into from Aug 13, 2020

Conversation

penghuo
Copy link
Contributor

@penghuo penghuo commented Aug 12, 2020

Problem statements

In new SQL/PPL engine, the IndexScanOperator pull all the data from data source by using scroll operator. Depend on the amount of documents in the index, the scoll operation could trigger the OOM and have negative impact on the system availabilty. Instead of return all the documents, we should have a mechanism to limit the query result.

Description of changes

  • Change the IndexScanOperator only return limited documents.
  • The limitation could be configured throught setting dynamatically.
  • The default limitation value is 200.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@penghuo penghuo self-assigned this Aug 12, 2020
@penghuo penghuo marked this pull request as ready for review August 12, 2020 15:57
Copy link
Member

@dai-chen dai-chen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

Copy link
Member

@chloe-zh chloe-zh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@penghuo penghuo merged commit b9959bf into opendistro-for-elasticsearch:develop Aug 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants