-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
x-pack/filebeat/input/cel: do not request more work after an eval failure #37161
Conversation
786006c
to
f85c20b
Compare
Pinging @elastic/security-external-integrations (Team:Security-External Integrations) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR looks good.
Just a thought.
Can the state be a struct with specific fields rather than holding them in a map with strings.
This way there is a clear representation of state and what it can hold?
This might also look cleaner to make state changes.
No, that is not possible given the computation model that we are using. |
This pull request is now in conflicts. Could you fix it? 🙏
|
…lure The logic for want_more is that there must be at least one event published for a true want_more field to result in an additional loop of evaluation. This condition can currently be true in the case that the evaluation fails. In the failure case it is likely that we do not want to re-eval, so set want_more to false in this situation.
f85c20b
to
0b0bbce
Compare
…lure (elastic#37161) The logic for want_more is that there must be at least one event published for a true want_more field to result in an additional loop of evaluation. This condition can currently be true in the case that the evaluation fails. In the failure case it is likely that we do not want to re-eval, so set want_more to false in this situation.
Proposed commit message
The logic for want_more is that there must be at least one event
published for a true want_more field to result in an additional loop of
evaluation. This condition can currently be true in the case that the
evaluation fails. In the failure case it is likely that we do not want
to re-eval, so set want_more to false in this situation.
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Author's Checklist
How to test this PR locally
Related issues
Use cases
Screenshots
Logs