Ensure hotthreads do not produce node failures (#61073)
This commit adds an assertion that no sub-nodes requests within hot threads failed. relates #58842
This commit is contained in:
parent
ef796e589c
commit
c73ab0b16f
|
@ -42,6 +42,7 @@ import static org.hamcrest.CoreMatchers.notNullValue;
|
|||
import static org.hamcrest.Matchers.containsString;
|
||||
import static org.hamcrest.Matchers.lessThan;
|
||||
import static org.hamcrest.Matchers.not;
|
||||
import static org.hamcrest.collection.IsEmptyCollection.empty;
|
||||
|
||||
public class HotThreadsIT extends ESIntegTestCase {
|
||||
|
||||
|
@ -88,6 +89,7 @@ public class HotThreadsIT extends ESIntegTestCase {
|
|||
try {
|
||||
assertThat(nodeHotThreads, notNullValue());
|
||||
Map<String, NodeHotThreads> nodesMap = nodeHotThreads.getNodesMap();
|
||||
assertThat(nodeHotThreads.failures(), empty());
|
||||
assertThat(nodesMap.size(), equalTo(cluster().size()));
|
||||
for (NodeHotThreads ht : nodeHotThreads.getNodes()) {
|
||||
assertNotNull(ht.getHotThreads());
|
||||
|
|
Loading…
Reference in New Issue