Commit a29392c
authored
Fix race in FileSettingsServiceIT.testSettingsAppliedOnStart (#134368)
This was failing very very rarely due to unfortunate timing conditions.
Cluster state changes are applied to all nodes prior to being published
on the master node itself. However, the cluster state listener was
previously attached to the data node, allowing for a very short time
window where the state update wasn't visible on the master node itself
when checking in `assertClusterStateSaveOK`.
This changes the test to attach the listener to the master node itself
preventing above condition. I was initially worried it might be attached
too late in cases, but I couldn't reproduce any more issues this way.
> According to the dashboard, this started to fail on Monday (13/07). It
definitely does not look like a test failure, so I'm assigning a medium
priority, which we could raise if we discover this is a new bug.
I couldn't find any related commit that might have caused this. Still
wondering why this started failing around that time 🤔
Fixes #1312101 parent a375c6e commit a29392c
File tree
2 files changed
+10
-7
lines changed- server/src/internalClusterTest/java/org/elasticsearch/reservedstate/service
2 files changed
+10
-7
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: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
| 191 | + | |
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
| 199 | + | |
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
203 | 208 | | |
204 | 209 | | |
205 | 210 | | |
| |||
265 | 270 | | |
266 | 271 | | |
267 | 272 | | |
268 | | - | |
| 273 | + | |
269 | 274 | | |
270 | 275 | | |
271 | 276 | | |
272 | | - | |
| 277 | + | |
273 | 278 | | |
274 | 279 | | |
275 | 280 | | |
276 | 281 | | |
| 282 | + | |
277 | 283 | | |
278 | 284 | | |
279 | 285 | | |
| |||
0 commit comments