static class TestHStore.FaultyOutputStream extends org.apache.hadoop.fs.FSDataOutputStream
Modifier and Type | Field and Description |
---|---|
private AtomicBoolean |
fault |
(package private) long |
faultPos |
written
out
Constructor and Description |
---|
FaultyOutputStream(org.apache.hadoop.fs.FSDataOutputStream out,
long faultPos,
AtomicBoolean fault) |
Modifier and Type | Method and Description |
---|---|
private void |
injectFault() |
void |
write(byte[] buf,
int offset,
int length) |
close, getPos, getWrappedStream, hasCapability, hflush, hsync, setDropBehind, sync
flush, size, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
write
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
write
volatile long faultPos
private final AtomicBoolean fault
public FaultyOutputStream(org.apache.hadoop.fs.FSDataOutputStream out, long faultPos, AtomicBoolean fault) throws IOException
IOException
public void write(byte[] buf, int offset, int length) throws IOException
write
in interface DataOutput
write
in class DataOutputStream
IOException
private void injectFault() throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.