@VisibleForTesting
@Private
public class DataNodeFaultInjector
extends java.lang.Object
| Constructor | Description |
|---|---|
DataNodeFaultInjector() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
badDecoding(java.nio.ByteBuffer[] outputs) |
Used as a hook to inject data pollution
into an erasure coding reconstruction.
|
void |
blockUtilSendFullBlockReport() |
Used as a hook to inject intercept when re-register.
|
void |
delay() |
Just delay a while.
|
void |
delayAckLastPacket() |
Used as a hook to delay sending the response of the last packet.
|
void |
delayBlockReader() |
Used as a hook to inject latency when read block
in erasure coding reconstruction process.
|
void |
delayDeleteReplica() |
Just delay delete replica a while.
|
void |
delaySendingAckToUpstream(java.lang.String upstreamAddr) |
|
void |
delayWhenOfferServiceHoldLock() |
Used as a hook to inject intercept when BPOfferService hold lock.
|
void |
delayWriteToDisk() |
Used as a hook to delay writing a packet to disk.
|
void |
delayWriteToOsCache() |
Used as a hook to delay writing a packet to os cache.
|
boolean |
dropHeartbeatPacket() |
|
void |
endOfferService() |
|
void |
failMirrorConnection() |
|
void |
failPipeline(ReplicaInPipeline replicaInfo,
java.lang.String mirrorAddr) |
|
static DataNodeFaultInjector |
get() |
|
void |
getHdfsBlocksMetadata() |
|
void |
interceptBlockReader() |
Used as a hook to inject intercept When finish reading from block.
|
void |
interceptFreeBlockReaderBuffer() |
Used as a hook to inject intercept when free the block reader buffer.
|
void |
logDelaySendingAckToUpstream(java.lang.String upstreamAddr,
long delayMs) |
Used as a hook to intercept the latency of sending ack.
|
void |
logDelaySendingPacketDownstream(java.lang.String mirrAddr,
long delayMs) |
Used as a hook to intercept the latency of sending packet.
|
void |
markSlow(java.lang.String dnAddr,
int[] replies) |
|
void |
noRegistration() |
|
void |
sendShortCircuitShmResponse() |
|
static void |
set(DataNodeFaultInjector injector) |
|
void |
startOfferService() |
|
void |
stopSendingPacketDownstream(java.lang.String mirrAddr) |
|
void |
stripedBlockChecksumReconstruction() |
Used as a hook to inject failure in erasure coding checksum reconstruction
process.
|
void |
stripedBlockReconstruction() |
Used as a hook to inject failure in erasure coding reconstruction
process.
|
void |
throwTooManyOpenFiles() |
|
void |
writeBlockAfterFlush() |
public static DataNodeFaultInjector get()
public static void set(DataNodeFaultInjector injector)
public void getHdfsBlocksMetadata()
public void writeBlockAfterFlush()
throws java.io.IOException
java.io.IOExceptionpublic void sendShortCircuitShmResponse()
throws java.io.IOException
java.io.IOExceptionpublic boolean dropHeartbeatPacket()
public void stopSendingPacketDownstream(java.lang.String mirrAddr)
throws java.io.IOException
java.io.IOExceptionpublic void logDelaySendingPacketDownstream(java.lang.String mirrAddr,
long delayMs)
throws java.io.IOException
java.io.IOExceptionpublic void delaySendingAckToUpstream(java.lang.String upstreamAddr)
throws java.io.IOException
java.io.IOExceptionpublic void delayAckLastPacket()
throws java.io.IOException
java.io.IOExceptionpublic void delayWriteToDisk()
public void delayWriteToOsCache()
public void logDelaySendingAckToUpstream(java.lang.String upstreamAddr,
long delayMs)
throws java.io.IOException
java.io.IOExceptionpublic void noRegistration()
throws java.io.IOException
java.io.IOExceptionpublic void failMirrorConnection()
throws java.io.IOException
java.io.IOExceptionpublic void failPipeline(ReplicaInPipeline replicaInfo, java.lang.String mirrorAddr) throws java.io.IOException
java.io.IOExceptionpublic void startOfferService()
throws java.lang.Exception
java.lang.Exceptionpublic void endOfferService()
throws java.lang.Exception
java.lang.Exceptionpublic void throwTooManyOpenFiles()
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic void stripedBlockReconstruction()
throws java.io.IOException
java.io.IOExceptionpublic void stripedBlockChecksumReconstruction()
throws java.io.IOException
java.io.IOExceptionpublic void delayBlockReader()
public void interceptFreeBlockReaderBuffer()
public void interceptBlockReader()
public void delayWhenOfferServiceHoldLock()
public void blockUtilSendFullBlockReport()
public void delay()
public void badDecoding(java.nio.ByteBuffer[] outputs)
public void markSlow(java.lang.String dnAddr,
int[] replies)
public void delayDeleteReplica()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.