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:
Ryan Ernst 2020-08-13 10:22:02 -07:00 committed by Ryan Ernst
parent ef796e589c
commit c73ab0b16f
No known key found for this signature in database
GPG Key ID: 5F7EA39E15F54DCE
1 changed files with 2 additions and 0 deletions

View File

@ -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());