mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-01 00:19:11 +00:00
Test: dump all threads when delete index fails during test cleanup
This commit is contained in:
parent
94c1a7dabe
commit
a783d342d2
@ -151,6 +151,12 @@ public abstract class TestCluster implements Iterable<Client>, Closeable {
|
||||
assertAcked(client().admin().indices().prepareDelete(concreteIndices.toArray(String.class)));
|
||||
}
|
||||
}
|
||||
} catch (AssertionError ae) {
|
||||
// Try to see what threads are doing when we hit the "Delete index failed - not acked":
|
||||
logger.info("dump all threads on AssertionError");
|
||||
ElasticsearchTestCase.printStackDump(logger);
|
||||
logger.info("done dump all threads on AssertionError");
|
||||
throw ae;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user