boolean hasStaleStorages() { synchronized (storageMap) { for (DatanodeStorageInfo storage : storageMap.values()) { if (StorageType.PROVIDED.equals(storage.getStorageType())) { // to verify provided storage participated in this hb, requires // check to pass DNDesc. // e.g., storageInfo.verifyBlockReportId(this, curBlockReportId) continue; } if (storage.areBlockContentsStale()) { return true; } } return false; } }
} else if (dnDesc.isStale(this.staleInterval)) { sb.append("STALE_NODE)"); } else if (storage.areBlockContentsStale()) { sb.append("STALE_BLOCK_CONTENT)"); } else {
if (storage.areBlockContentsStale()) { LOG.trace("BLOCK* processExtraRedundancyBlock: Postponing {}" + " since storage {} does not yet have up-to-date information.",
if (storage.areBlockContentsStale()) { state += " (block deletions maybe out of date)";
boolean hasStaleStorages() { synchronized (storageMap) { for (DatanodeStorageInfo storage : storageMap.values()) { if (storage.areBlockContentsStale()) { return true; } } return false; } }
boolean hasStaleStorages() { synchronized (storageMap) { for (DatanodeStorageInfo storage : storageMap.values()) { if (storage.areBlockContentsStale()) { return true; } } return false; } }
if (storage.areBlockContentsStale()) { counters.add(StoredReplicaState.STALESTORAGE, 1);
if (storageInfo.areBlockContentsStale()) { numOfStaleStorages++;
for(DatanodeStorageInfo storage : blocksMap.getStorages(block, State.NORMAL)) { final DatanodeDescriptor cur = storage.getDatanodeDescriptor(); if (storage.areBlockContentsStale()) { LOG.trace("BLOCK* processOverReplicatedBlock: Postponing {}" + " since storage {} does not yet have up-to-date information.",
for(DatanodeStorageInfo storage : blocksMap.getStorages(block, State.NORMAL)) { final DatanodeDescriptor cur = storage.getDatanodeDescriptor(); if (storage.areBlockContentsStale()) { LOG.trace("BLOCK* processOverReplicatedBlock: Postponing {}" + " since storage {} does not yet have up-to-date information.",
if (storage.areBlockContentsStale()) { stale++;
if (storage.areBlockContentsStale()) { state += " (block deletions maybe out of date)";
if (storage.areBlockContentsStale()) { stale++;
if (storage.areBlockContentsStale()) { state += " (block deletions maybe out of date)";
if (storageInfo.areBlockContentsStale()) { numOfStaleStorages++;
if (storageInfo.areBlockContentsStale()) { numOfStaleStorages++;