Commit 8170cff
authored
[Security Solution][AI Assistant] Handle conflicts during the bulk update (#233288)
## Summary
Part of
Epic: elastic/security-team#12768
Meta: elastic/security-team#13657
In my [previous PR](#232288), I
accidentally removed "retry on conflict"
[logic](https://github.com/elastic/kibana/pull/232288/files#r2305375978).
These changes add a retry logic on bulk update conflicts. For that we
use a `retry_on_conflict` option
https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-bulk#operation-bulk-body-application-json-update-retry_on_conflict.
The retry count is set to 3 to match previous behaviour.
cc @stephmilovic1 parent be6ca26 commit 8170cff
File tree
2 files changed
+4
-2
lines changed- x-pack/solutions/security/plugins/elastic_assistant/server
- ai_assistant_data_clients/conversations
- lib/data_stream
2 files changed
+4
-2
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| 182 | + | |
182 | 183 | | |
183 | 184 | | |
184 | 185 | | |
| |||
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
| 218 | + | |
218 | 219 | | |
219 | 220 | | |
220 | 221 | | |
221 | 222 | | |
222 | 223 | | |
223 | 224 | | |
224 | | - | |
| 225 | + | |
225 | 226 | | |
226 | 227 | | |
227 | 228 | | |
| |||
274 | 275 | | |
275 | 276 | | |
276 | 277 | | |
277 | | - | |
| 278 | + | |
278 | 279 | | |
279 | 280 | | |
280 | 281 | | |
| |||
0 commit comments