Package org.elasticsearch.test
Class CorruptionUtils
java.lang.Object
org.elasticsearch.test.CorruptionUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
corruptFile(Random random, Path... files)
Corrupts a random file at a random positionstatic void
corruptIndex(Random random, Path indexPath, boolean corruptSegments)
-
Method Details
-
corruptIndex
public static void corruptIndex(Random random, Path indexPath, boolean corruptSegments) throws IOException- Throws:
IOException
-
corruptFile
Corrupts a random file at a random position- Throws:
IOException
-