Commit 83b214e
authored
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: #134748
1 parent 31f0ba4 commit 83b214e
File tree
1 file changed
+2
-1
lines changed- server/src/internalClusterTest/java/org/elasticsearch/discovery
1 file changed
+2
-1
lines changedLines 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