Commit 2ed9121
authored
Refresh source index before reindexing data stream index (elastic#120752) (elastic#120808)
Add step to the ReindexDatastreamIndexAction which refreshes the source index after setting it to read-only but before calling reindex. Without doing a refresh it is possible for docs from the source index to be missing from the destination index. This happens because the docs arrived before the source index is set to read-only, but because the index hasn't refreshed, the reindex action cannot see these updates.
(cherry picked from commit 484a950)
# Conflicts:
# muted-tests.yml1 parent 50861c1 commit 2ed9121
File tree
4 files changed
+29
-22
lines changed- docs/changelog
- x-pack/plugin/migrate/src
- internalClusterTest/java/org/elasticsearch/xpack/migrate/action
- main/java/org/elasticsearch/xpack/migrate/action
4 files changed
+29
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | 409 | | |
413 | 410 | | |
414 | 411 | | |
| |||
Lines changed: 14 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
90 | 91 | | |
91 | 92 | | |
92 | 93 | | |
| |||
195 | 196 | | |
196 | 197 | | |
197 | 198 | | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
| 199 | + | |
211 | 200 | | |
212 | 201 | | |
213 | 202 | | |
| |||
336 | 325 | | |
337 | 326 | | |
338 | 327 | | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
339 | 334 | | |
340 | 335 | | |
341 | 336 | | |
| |||
357 | 352 | | |
358 | 353 | | |
359 | 354 | | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
360 | 358 | | |
361 | 359 | | |
362 | 360 | | |
| |||
450 | 448 | | |
451 | 449 | | |
452 | 450 | | |
453 | | - | |
454 | 451 | | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
459 | 455 | | |
460 | 456 | | |
461 | 457 | | |
| |||
478 | 474 | | |
479 | 475 | | |
480 | 476 | | |
481 | | - | |
482 | 477 | | |
483 | 478 | | |
484 | 479 | | |
| |||
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
140 | 141 | | |
141 | 142 | | |
142 | 143 | | |
| 144 | + | |
143 | 145 | | |
144 | 146 | | |
145 | 147 | | |
| |||
175 | 177 | | |
176 | 178 | | |
177 | 179 | | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
178 | 187 | | |
179 | 188 | | |
180 | 189 | | |
| |||
0 commit comments