Class BlobStoreCorruptionUtils
java.lang.Object
org.elasticsearch.repositories.blobstore.BlobStoreCorruptionUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcorruptFileContents(Path fileToCorrupt) static PathcorruptRandomFile(Path repositoryRootPath) static RepositoryFileTypestatic PathgetRandomFileToCorrupt(Path repositoryRootPath, RepositoryFileType corruptedFileType)
-
Constructor Details
-
BlobStoreCorruptionUtils
public BlobStoreCorruptionUtils()
-
-
Method Details
-
corruptRandomFile
- Throws:
IOException
-
corruptFileContents
- Throws:
IOException
-
getRandomCorruptibleFileType
-
getRandomFileToCorrupt
public static Path getRandomFileToCorrupt(Path repositoryRootPath, RepositoryFileType corruptedFileType) throws IOException - Throws:
IOException
-