// Pessimistically update last block length from DataNode.
// File could have been renamed, and a new file created in its place.
try {
DFSInputStream stm = client.open(path);
DFSLocatedBlocks locBlks = stm.fetchLocatedBlocks();
if (locBlks.locatedBlockCount() >= blks.length) {
if (blks[index] != null && locBlks.get(index) != null) {
if (blks[index].getBlockId() == locBlks.get(index).getBlock().getBlockId()) {
blks[index].setNumBytes(locBlks.get(index).getBlock().getNumBytes());