return new DNAddrPair(chosenNode, targetAddr);
} catch (IOException ie) {
int failureTimes = dfsInputStreamfailures.get();
String blockInfo = block.getBlock() + " file=" + src;
if (failureTimes >= maxBlockAcquireFailures) {
throw new BlockMissingException(src, "Could not obtain block: " +
blockInfo, block.getStartOffset());
}
if (nodes == null || nodes.length == 0) {
LOG.info("No node available for block: " + blockInfo);