Class TestFSErrorsExposed.FaultyInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
java.io.DataInputStream
org.apache.hadoop.fs.FSDataInputStream
org.apache.hadoop.hbase.regionserver.TestFSErrorsExposed.FaultyInputStream
- All Implemented Interfaces:
Closeable
,DataInput
,AutoCloseable
,org.apache.hadoop.fs.ByteBufferPositionedReadable
,org.apache.hadoop.fs.ByteBufferReadable
,org.apache.hadoop.fs.CanSetDropBehind
,org.apache.hadoop.fs.CanSetReadahead
,org.apache.hadoop.fs.CanUnbuffer
,org.apache.hadoop.fs.HasEnhancedByteBufferAccess
,org.apache.hadoop.fs.HasFileDescriptor
,org.apache.hadoop.fs.PositionedReadable
,org.apache.hadoop.fs.Seekable
,org.apache.hadoop.fs.StreamCapabilities
- Enclosing class:
- TestFSErrorsExposed
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hadoop.fs.StreamCapabilities
org.apache.hadoop.fs.StreamCapabilities.StreamCapability
-
Field Summary
Fields inherited from class java.io.FilterInputStream
in
Fields inherited from interface org.apache.hadoop.fs.StreamCapabilities
DROPBEHIND, HFLUSH, HSYNC, PREADBYTEBUFFER, READAHEAD, READBYTEBUFFER, UNBUFFER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
int
read
(long position, byte[] buffer, int offset, int length) void
Methods inherited from class org.apache.hadoop.fs.FSDataInputStream
getFileDescriptor, getPos, getWrappedStream, hasCapability, read, read, read, read, readFully, readFully, releaseBuffer, seek, seekToNewSource, setDropBehind, setReadahead, toString, unbuffer
Methods inherited from class java.io.DataInputStream
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytes
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, reset, skip
-
Field Details
-
faultsStarted
boolean faultsStarted
-
-
Constructor Details
-
FaultyInputStream
- Throws:
IOException
-
-
Method Details
-
startFaults
-
read
- Specified by:
read
in interfaceorg.apache.hadoop.fs.PositionedReadable
- Overrides:
read
in classorg.apache.hadoop.fs.FSDataInputStream
- Throws:
IOException
-
injectFault
- Throws:
IOException
-