Add more debug info to testcase

This commit is contained in:
Simon Willnauer 2013-10-01 14:56:27 +02:00
parent e826cfa494
commit f3b6339ad1
1 changed files with 2 additions and 1 deletions

View File

@ -116,9 +116,10 @@ public class SearchWithRandomExceptionsTests extends AbstractIntegrationTest {
} catch (ElasticSearchException ex) {
}
}
logger.info("Start Refresh");
RefreshResponse refreshResponse = client().admin().indices().prepareRefresh("test").execute().get(); // don't assert on failures here
final boolean refreshFailed = refreshResponse.getShardFailures().length != 0 || refreshResponse.getFailedShards() != 0;
logger.info("Refresh failed [{}]", refreshFailed);
logger.info("Refresh failed [{}] numShardsFailed: [{}], shardFailuresLength: [{}], successfulShards: [{}], totalShards: [{}] ", refreshFailed, refreshResponse.getFailedShards(), refreshResponse.getShardFailures().length, refreshResponse.getSuccessfulShards(), refreshResponse.getTotalShards());
final int numSearches = atLeast(10);
// we don't check anything here really just making sure we don't leave any open files or a broken index behind.