Commit 3c3d380
authored
Fix race condition in SearchOnlyReplicaIT (#18072)
I observed a failure in local testing due to this issue. The code
previously was assuming it would observe a yellow cluster after
restarting a node, but the node could restart and re-join the cluster
before the assertion causing a failure. The `onNodeStopped` callback
lets the test execute code before the node is restarted, so it should
fix this issue.
Signed-off-by: Andrew Ross <[email protected]>1 parent ee6ca34 commit 3c3d380
File tree
1 file changed
+9
-4
lines changed- server/src/internalClusterTest/java/org/opensearch/indices/settings
1 file changed
+9
-4
lines changedLines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
159 | 164 | | |
160 | 165 | | |
161 | 166 | | |
| |||
0 commit comments