-
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
[RAC][Rule Registry] BUG: Duplicated documents written after index bootstrapping #110499
Comments
Pinging @elastic/security-solution (Team: SecuritySolution) |
Pinging @elastic/security-detections-response (Team:Detections and Resp) |
I am wondering if we can just fix this bug by adding the parameter refresh here https://github.com/elastic/kibana/blob/master/x-pack/plugins/rule_registry/server/rule_data_client/rule_data_client.ts#L121 |
@banderror @peluja1012 Is this still required for 7.16? |
@weltenwort + @Kerry350 can we confirm whether or not this is a critical bug, given how we've designed mappings updates for now? |
I wasn't able to reproduce it with the changes coming as part of #113389. What I did see, though, is that it can take almost 30 seconds to update about 200 indices. The lazy nature of that operation might mitigate the performance impact somewhat, but if several alerts start executing in short succession on startup it will produce some load. @Kerry350 on a related note, during my experiments I removed the retry around the namespace-level init and didn't come across any failures that the retry might have fixed. |
Hey everyone, I removed this ticket from the backlog of the Detection Rules area. We (@elastic/security-detections-response-rules) are not the owners anymore (however feel free to still ping us if you have any tech questions about the ticket). Ownership of this ticket and other tickets related to rule_registry (like #101016) now goes to the Detection Alerts area ( |
Thanks for the update @banderror! As we can't currently reproduce this issue, I'm going to close it as fixed. Let's reopen if someone has repro steps that do in fact show the issue still exists. |
Parent ticket: #101016
Summary
When I am trying to mass write into uninitialized Rule Registry indices, some documents get duplicated.
Steps to reproduce
Expected behavior
After Kibana start, 100 indices were created with 1 document in each.
Actual behavior
Created 100 indices, but some of them contain 2 documents instead of one:
Example documents:
Relevant Kibana logs
The text was updated successfully, but these errors were encountered: