Commit 119c682
authored
Fix DiscoveryDisruptionIT.testElectMasterWithLatestVersion (#135396)
The clusterAdmin() call at the end of the test uses a random node,
which may not have been part of the current election, and may still
have an old cluster state, prior to the creation of the index in the
test. The fix ensures we use the admin client for the master node.
Resolves: #1347481 parent 203df4e commit 119c682
File tree
2 files changed
+2
-4
lines changed- server/src/internalClusterTest/java/org/elasticsearch/discovery
2 files changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
513 | 513 | | |
514 | 514 | | |
515 | 515 | | |
516 | | - | |
517 | | - | |
518 | | - | |
519 | 516 | | |
520 | 517 | | |
521 | 518 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
| 151 | + | |
151 | 152 | | |
152 | 153 | | |
153 | 154 | | |
| |||
0 commit comments