in.readByte();
DFSInputStream dfsClientIn = findDFSClientInputStream(in);
Field blockReaderField = DFSInputStream.class.getDeclaredField("blockReader");
blockReaderField.setAccessible(true);
BlockReader blockReader = (BlockReader) blockReaderField.get(dfsClientIn);
blockReader.setArtificialSlowdown(1000);
blockReader.isReadLocal = false;
blockReader.isReadRackLocal = false;
blockReader.ENABLE_THROW_FOR_SLOW = true;
for (int i = 0; i < 1024; i++) {
in.readByte();
}
blockReader.setArtificialSlowdown(0);
for (int i = 1024; i < fileSize - 1; i++) {
in.readByte();
}
ConcurrentHashMap<DatanodeInfo, DatanodeInfo> deadNodes = getDeadNodes(dfsClientIn);