while (it.hasNext()) { DatanodeDescriptor d = it.next(); if (d.isStale(staleInterval)) { it.remove(); stale.add(d);
} else if (blockManager.isExcess(dnDesc, storedBlock)) { sb.append("EXCESS)"); } else if (dnDesc.isStale(this.staleInterval)) { sb.append("STALE_NODE)"); } else if (storage.areBlockContentsStale()) {
if (node.isStale(this.staleInterval)) { logNodeIsNotChosen(node, NodeNotChosenReason.NODE_STALE); return false;
new ArrayList<>(storages.length); for (DatanodeStorageInfo storage : storages) { if (!storage.getDatanodeDescriptor().isStale(staleInterval)) { recoveryLocations.add(storage);
dead = d; if (d.isStale(dm.getStaleInterval())) { numOfStaleNodes++;
while (it.hasNext()) { DatanodeDescriptor d = it.next(); if (d.isStale(staleInterval)) { it.remove(); stale.add(d);
while (it.hasNext()) { DatanodeDescriptor d = it.next(); if (d.isStale(staleInterval)) { it.remove(); stale.add(d);
new ArrayList<DatanodeStorageInfo>(storages.length); for (int i = 0; i < storages.length; i++) { if (!storages[i].getDatanodeDescriptor().isStale(staleInterval)) { recoveryLocations.add(storages[i]);
new ArrayList<DatanodeStorageInfo>(storages.length); for (int i = 0; i < storages.length; i++) { if (!storages[i].getDatanodeDescriptor().isStale(staleInterval)) { recoveryLocations.add(storages[i]);
if (node.isStale(this.staleInterval)) { logNodeIsNotChosen(storage, "the node is stale "); return false;
dead = d; if (d.isStale(dm.getStaleInterval())) { numOfStaleNodes++;
if (node.isStale(this.staleInterval)) { logNodeIsNotChosen(storage, "the node is stale "); return false;
dead = d; if (d.isStale(dm.getStaleInterval())) { numOfStaleNodes++;