[TEST] add logging to MockRepository to help debug index-N blob reading

This commit is contained in:
Ali Beyad 2017-01-18 08:53:29 -05:00
parent 1227044ddd
commit 8a0a1140a9
1 changed files with 3 additions and 1 deletions

View File

@ -166,7 +166,7 @@ public class MockRepository extends FsRepository {
@Override
public RepositoryData getRepositoryData() {
final int numIterations = 5;
final int numIterations = 10;
int count = 0;
NotXContentException ex = null;
RepositoryData repositoryData = null;
@ -186,6 +186,8 @@ public class MockRepository extends FsRepository {
}
}
if (ex != null) {
logger.info("--> [{}] repository failed to read x-content from index file, on iteration [{}] the repository data was [{}]",
metadata.name(), count, repositoryData);
throw ex;
}
return repositoryData;