throw e;
} finally {
_currBlock.close();
}
CacheEntry ce = null;
try {
ce = cache.cacheBlock(_lookup, b);
} catch (Exception e) {
log.warn("Already cached block: " + _lookup, e);
}
if (ce == null)
return new BlockRead(new DataInputStream(new ByteArrayInputStream(b)), b.length);
else
return new CachedBlockRead(ce, ce.getBuffer());
}
}