HDFS-5198. NameNodeRpcServer must not send back DNA_FINALIZE in reply to a cache report.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/HDFS-4949@1523087 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
02e0e158a2
commit
2f8297215f
@ -39,3 +39,6 @@ HDFS-4949 (Unreleased)
|
||||
BUG FIXES
|
||||
HDFS-5169. hdfs.c: translateZCRException: null pointer deref when
|
||||
translating some exceptions. (Contributed by Colin Patrick McCabe)
|
||||
|
||||
HDFS-5198. NameNodeRpcServer must not send back DNA_FINALIZE in reply to a
|
||||
cache report. (Contributed by Colin Patrick McCabe)
|
||||
|
@ -31,13 +31,11 @@
|
||||
import java.util.Collection;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.NoSuchElementException;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.hadoop.HadoopIllegalArgumentException;
|
||||
import org.apache.hadoop.conf.Configuration;
|
||||
import org.apache.hadoop.fs.BatchedRemoteIterator;
|
||||
import org.apache.hadoop.fs.BatchedRemoteIterator.BatchedEntries;
|
||||
import org.apache.hadoop.fs.CommonConfigurationKeys;
|
||||
import org.apache.hadoop.fs.ContentSummary;
|
||||
import org.apache.hadoop.fs.CreateFlag;
|
||||
@ -971,9 +969,6 @@ public DatanodeCommand cacheReport(DatanodeRegistration nodeReg,
|
||||
verifyRequest(nodeReg);
|
||||
BlockListAsLongs blist = new BlockListAsLongs(blocks);
|
||||
namesystem.getBlockManager().processCacheReport(nodeReg, poolId, blist);
|
||||
if (nn.getFSImage().isUpgradeFinalized() && !nn.isStandbyState()) {
|
||||
return new FinalizeCommand(poolId);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user