Commit f57be54
authored
[CI] Fix IndexShardTests.testReentrantEngineReadLockAcquisitionInRefreshListener (#126685)
I suspect the test resets/closes the reference manager
between the refresh and the retrieval of the segment
generation after the refresh.
By executing segmentGenerationAfterRefresh while
holding the engine reset lock we make sure there
are no concurrent engine resets meanwhile.
In the future, we should also ensure that
IndexShard.refresh() uses withEngine.
Closes #1266281 parent 507f40c commit f57be54
File tree
3 files changed
+20
-13
lines changed- server/src
- main/java/org/elasticsearch/index/engine
- test/java/org/elasticsearch/index/shard
3 files changed
+20
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | 414 | | |
418 | 415 | | |
419 | 416 | | |
| |||
Lines changed: 19 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2063 | 2063 | | |
2064 | 2064 | | |
2065 | 2065 | | |
| 2066 | + | |
2066 | 2067 | | |
2067 | 2068 | | |
2068 | 2069 | | |
| |||
2071 | 2072 | | |
2072 | 2073 | | |
2073 | 2074 | | |
| 2075 | + | |
| 2076 | + | |
| 2077 | + | |
2074 | 2078 | | |
2075 | 2079 | | |
2076 | 2080 | | |
2077 | 2081 | | |
2078 | 2082 | | |
2079 | | - | |
2080 | | - | |
2081 | | - | |
2082 | | - | |
2083 | | - | |
2084 | | - | |
2085 | | - | |
2086 | | - | |
2087 | | - | |
2088 | 2083 | | |
2089 | 2084 | | |
2090 | 2085 | | |
| |||
2120 | 2115 | | |
2121 | 2116 | | |
2122 | 2117 | | |
| 2118 | + | |
| 2119 | + | |
| 2120 | + | |
| 2121 | + | |
| 2122 | + | |
| 2123 | + | |
| 2124 | + | |
| 2125 | + | |
| 2126 | + | |
| 2127 | + | |
| 2128 | + | |
| 2129 | + | |
| 2130 | + | |
| 2131 | + | |
| 2132 | + | |
2123 | 2133 | | |
2124 | 2134 | | |
2125 | 2135 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5274 | 5274 | | |
5275 | 5275 | | |
5276 | 5276 | | |
5277 | | - | |
| 5277 | + | |
5278 | 5278 | | |
5279 | 5279 | | |
5280 | 5280 | | |
| |||
0 commit comments