static class TestFSErrorsExposed.FaultyInputStream extends org.apache.hadoop.fs.FSDataInputStream
Modifier and Type | Field and Description |
---|---|
(package private) boolean |
faultsStarted |
in
Constructor and Description |
---|
FaultyInputStream(InputStream in) |
Modifier and Type | Method and Description |
---|---|
private void |
injectFault() |
int |
read(long position,
byte[] buffer,
int offset,
int length) |
void |
startFaults() |
getFileDescriptor, getPos, getWrappedStream, hasCapability, read, read, read, read, readFully, readFully, releaseBuffer, seek, seekToNewSource, setDropBehind, setReadahead, toString, unbuffer
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytes
available, close, mark, markSupported, read, reset, skip
boolean faultsStarted
public FaultyInputStream(InputStream in) throws IOException
IOException
public void startFaults()
public int read(long position, byte[] buffer, int offset, int length) throws IOException
read
in interface org.apache.hadoop.fs.PositionedReadable
read
in class org.apache.hadoop.fs.FSDataInputStream
IOException
private void injectFault() throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.