Skip to content

Commit

Permalink
Log when clients are randomly reset in ITs (elastic#113510)
Browse files Browse the repository at this point in the history
This is useful for debugging tests and should not be too noisy since
it's a rare event.
  • Loading branch information
n1v0lg authored Sep 26, 2024
1 parent 11c0bf8 commit 0d275c6
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1536,7 +1536,9 @@ private void randomlyResetClients() {
// only reset the clients on nightly tests, it causes heavy load...
if (RandomizedTest.isNightly() && rarely(random)) {
final Collection<NodeAndClient> nodesAndClients = nodes.values();
logger.info("Resetting [{}] node clients on internal test cluster", nodesAndClients.size());
for (NodeAndClient nodeAndClient : nodesAndClients) {
logger.info("Resetting [{}] node client on internal test cluster", nodeAndClient.name);
nodeAndClient.resetClient();
}
}
Expand Down

0 comments on commit 0d275c6

Please sign in to comment.