-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[responseOps] execution duration > 112 DAYS! causes error writing event log doc #127802
Comments
Pinging @elastic/response-ops (Team:ResponseOps) |
Seems highly unlikely it was running this long, and I think it could be because of some faulty logic during retries where we count the duration from the first try. But ... wow, that still seems off. Figured I'd open the issue to track it anyway ... |
I came across this issue as well, in my case, it happened whenever an alert has been active for longer than 112 days. |
Linking similar issue: #130119
|
Thought I'd drop a few notes on this. The kibana/x-pack/plugins/event_log/generated/mappings.json Lines 82 to 84 in c0c6c9f
In ES, a I was curious what the absolute limit in days we can store in that long:
That's almost 300 years, so ... seems safe. I think we may have to rely on We should probably check to see if any other existing fields can overflow like this - maybe we should have a common "stringization" of Since we only every access the source of ES docs, presumably we'll have to "fix" them when we process the results from searches. My guess is that dealing with a plain old query will be easy - we can "fix" the values since we know where they are in the Perhaps this is also a good time to evaluate whether we should add a A runtime field is perhaps worth looking into as well, but I worry about the performance implications. |
Yeah, that's the path I'm thinking we'll have to go. But you're right, if search responses start replying with string values, we'll have to assess the impact, like aggregations and see if it's still a viable option before it gets too complex. |
Kibana version: 7.17.1
Describe the bug:
Seen in user logs:
That's one long rule execution! Back-of-the-envelope calculation on how long 9774684315000000 nanoseconds are: 113 days, and the GOOG concurs:
Steps to reproduce:
Expected behavior:
An error should not occur.
Seems like we need to catch numbers bigger than
Number.MAX_SAFE_INTEGER
and either send that max value, or figure out if we can send a floating point or some other representation.The text was updated successfully, but these errors were encountered: