Commit 1bb7154
authored
ReindexDataStreamIndex bug in assertion caused by reference equality (elastic#121325) (elastic#121413)
Assertion was using reference equality on two boxed longs. So assertion could produce false positives. Change to Objects.equals to check value and avoid null check.
(cherry picked from commit eeb745c)1 parent a95b0a9 commit 1bb7154
File tree
2 files changed
+7
-1
lines changed- docs/changelog
- x-pack/plugin/migrate/src/main/java/org/elasticsearch/xpack/migrate/action
2 files changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
372 | 373 | | |
373 | 374 | | |
374 | 375 | | |
375 | | - | |
| 376 | + | |
376 | 377 | | |
377 | 378 | | |
378 | 379 | | |
| |||
0 commit comments