Class CheckpointFaultInjector
java.lang.Object
org.apache.hadoop.hdfs.server.namenode.CheckpointFaultInjector
Utility class to faciliate some fault injection tests for the checkpointing
process.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaboutToSendFile(File localfile) voidvoidvoidvoidvoidvoidvoidstatic CheckpointFaultInjectorstatic voidset(CheckpointFaultInjector instance) booleanshouldCorruptAByte(File localfile) booleanshouldSendShortFile(File localfile)
-
Field Details
-
instance
-
-
Constructor Details
-
CheckpointFaultInjector
public CheckpointFaultInjector()
-
-
Method Details
-
getInstance
-
set
-
beforeGetImageSetsHeaders
- Throws:
IOException
-
afterSecondaryCallsRollEditLog
- Throws:
IOException
-
duringMerge
- Throws:
IOException
-
afterSecondaryUploadsNewImage
- Throws:
IOException
-
aboutToSendFile
- Throws:
IOException
-
shouldSendShortFile
-
shouldCorruptAByte
-
afterMD5Rename
- Throws:
IOException
-
beforeEditsRename
- Throws:
IOException
-
duringUploadInProgess
- Throws:
InterruptedExceptionIOException
-