[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.
This commit is contained in:
parent
f4270f9914
commit
0c7fc229b8
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue