[TEST] No longer randomly block on the index-N files in the
MockRepository, because the getRepositoryData() call depends on it,
which is used in non-synchronized actions such as getting
snapshot status.
@@ -269,7 +269,9 @@ public class MockRepository extends FsRepository {
}
}
}
- } else {
+ }
+ // don't block on the index-N files, as getRepositoryData depends on it
+ else if (blobName.startsWith("index-") == false) {
if (shouldFail(blobName, randomControlIOExceptionRate) && (incrementAndGetFailureCount() < maximumNumberOfFailures)) {
logger.info("throwing random IOException for file [{}] at path [{}]", blobName, path());
throw new IOException("Random IOException");
