@Override // NameNodeMXBean public boolean isUpgradeFinalized() { return this.getFSImage().isUpgradeFinalized(); }
incomingBlockReportRpc(nodeReg, context); if (nn.getFSImage().isUpgradeFinalized() && !namesystem.isRollingUpgrade() && !nn.isStandbyState() &&
@Override // NameNodeMXBean public boolean isUpgradeFinalized() { return this.getFSImage().isUpgradeFinalized(); }
@Override // NameNodeMXBean public boolean isUpgradeFinalized() { return this.getFSImage().isUpgradeFinalized(); }
@Override // NameNodeMXBean public boolean isUpgradeFinalized() { return this.getFSImage().isUpgradeFinalized(); }
@Override public DatanodeCommand blockReport(DatanodeRegistration nodeReg, long[] blocks) throws IOException { verifyRequest(nodeReg); myMetrics.numBlockReport.inc(); BlockListAsLongs blist = new BlockListAsLongs(blocks); if (stateChangeLog.isDebugEnabled()) { stateChangeLog.debug("*BLOCK* NameNode.blockReport: " +"from "+nodeReg.getName()+" "+blist.getNumberOfBlocks() +" blocks"); } namesystem.processReport(nodeReg, blist); if (getFSImage().isUpgradeFinalized()) return DatanodeCommand.FINALIZE; return null; }
public DatanodeCommand blockReport(DatanodeRegistration nodeReg, long[] blocks) throws IOException { verifyRequest(nodeReg); BlockListAsLongs blist = new BlockListAsLongs(blocks); stateChangeLog.debug("*BLOCK* NameNode.blockReport: " +"from "+nodeReg.getName()+" "+blist.getNumberOfBlocks() +" blocks"); namesystem.processReport(nodeReg, blist); if (getFSImage().isUpgradeFinalized()) return DatanodeCommand.FINALIZE; return null; }
UpgradeStatusReport distributedUpgradeProgress(UpgradeAction action ) throws IOException { boolean isFinalized = false; if(currentUpgrades == null) { // no upgrades are in progress FSImage fsimage = namesystem.getFSImage(); isFinalized = fsimage.isUpgradeFinalized(); if(isFinalized) // upgrade is finalized return null; // nothing to report return new UpgradeStatusReport(fsimage.getLayoutVersion(), (short)101, isFinalized); } UpgradeObjectNamenode curUO = (UpgradeObjectNamenode)currentUpgrades.first(); boolean details = false; switch(action) { case GET_STATUS: break; case DETAILED_STATUS: details = true; break; case FORCE_PROCEED: curUO.forceProceed(); } return curUO.getUpgradeStatusReport(details); } }
UpgradeStatusReport distributedUpgradeProgress(UpgradeAction action ) throws IOException { boolean isFinalized = false; if(currentUpgrades == null) { // no upgrades are in progress FSImage fsimage = FSNamesystem.getFSNamesystem().getFSImage(); isFinalized = fsimage.isUpgradeFinalized(); if(isFinalized) // upgrade is finalized return null; // nothing to report return new UpgradeStatusReport(fsimage.getLayoutVersion(), (short)101, isFinalized); } UpgradeObjectNamenode curUO = (UpgradeObjectNamenode)currentUpgrades.first(); boolean details = false; switch(action) { case GET_STATUS: break; case DETAILED_STATUS: details = true; break; case FORCE_PROCEED: curUO.forceProceed(); } return curUO.getUpgradeStatusReport(details); }
if (nn.getFSImage().isUpgradeFinalized() && !namesystem.isRollingUpgrade() && !nn.isStandbyState() &&
if (nn.getFSImage().isUpgradeFinalized() && !namesystem.isRollingUpgrade() && !nn.isStandbyState() &&