Skip to content
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

Update Painless Loop Counter to be Higher #22560

Merged
merged 1 commit into from
Jan 11, 2017
Merged

Conversation

jdconrad
Copy link
Contributor

Considering this a bug as it probably should have been higher to support updates in the first place, but still provides some infinite loop protection. Updated to 1000000 from 10000.

This counter applies on a loose basis to statements (not operations) within a loop in Painless. It is cumulative on a per function basis including the main function. Calls external to Painless functions count as one statement. This will hopefully become smarter in the future.

Relates: (#22508)

Copy link
Member

@nik9000 nik9000 left a comment

Choose a reason for hiding this comment

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

Cool. I'd love to have the ability to control this context by context but until we get that, let's make this work properly in the update case.

@jdconrad
Copy link
Contributor Author

@nik9000 Thanks for the review!

@jdconrad jdconrad merged commit 97c4cd4 into elastic:master Jan 11, 2017
jdconrad added a commit that referenced this pull request Jan 11, 2017
Updated Painless loop counter to be 1000000 statements instead of 10000 for update queries.
jdconrad added a commit that referenced this pull request Jan 11, 2017
Updated Painless loop counter to be 1000000 statements instead of 10000 for update queries.
jdconrad added a commit that referenced this pull request Jan 11, 2017
Updated Painless loop counter to be 1000000 statements instead of 10000 for update queries.
@nik9000 nik9000 added v5.1.3 and removed v5.1.2 labels Jan 12, 2017
@jdconrad jdconrad deleted the counter branch February 21, 2017 18:40
@clintongormley clintongormley added :Core/Infra/Scripting Scripting abstractions, Painless, and Mustache and removed :Plugin Lang Painless labels Feb 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Core/Infra/Scripting Scripting abstractions, Painless, and Mustache v5.1.3 v5.2.0 v6.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants