HDFS-4917. Merge 1494433 from trunk.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1494434 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Suresh Srinivas 2013-06-19 03:58:06 +00:00
parent ee748a1063
commit cd5b7bdf06
3 changed files with 7 additions and 4 deletions

View File

@ -397,6 +397,9 @@ Release 2.1.0-beta - UNRELEASED
HDFS-4906. HDFS Output streams should not accept writes after being HDFS-4906. HDFS Output streams should not accept writes after being
closed. (atm) closed. (atm)
HDFS-4917. Start-dfs.sh cannot pass the parameters correctly.
(Fengdong Yu via suresh)
BREAKDOWN OF HDFS-347 SUBTASKS AND RELATED JIRAS BREAKDOWN OF HDFS-347 SUBTASKS AND RELATED JIRAS
HDFS-4353. Encapsulate connections to peers in Peer and PeerServer classes. HDFS-4353. Encapsulate connections to peers in Peer and PeerServer classes.

View File

@ -47,7 +47,7 @@ if [ $# -ge 1 ]; then
fi fi
#Add other possible options #Add other possible options
nameStartOpt="$nameStartOpts $@" nameStartOpt="$nameStartOpt $@"
#--------------------------------------------------------- #---------------------------------------------------------
# namenodes # namenodes

View File

@ -190,7 +190,7 @@ class UnderReplicatedBlocks implements Iterable<Block> {
assert curReplicas >= 0 : "Negative replicas!"; assert curReplicas >= 0 : "Negative replicas!";
int priLevel = getPriority(block, curReplicas, decomissionedReplicas, int priLevel = getPriority(block, curReplicas, decomissionedReplicas,
expectedReplicas); expectedReplicas);
if(priLevel != LEVEL && priorityQueues.get(priLevel).add(block)) { if(priorityQueues.get(priLevel).add(block)) {
if(NameNode.blockStateChangeLog.isDebugEnabled()) { if(NameNode.blockStateChangeLog.isDebugEnabled()) {
NameNode.blockStateChangeLog.debug( NameNode.blockStateChangeLog.debug(
"BLOCK* NameSystem.UnderReplicationBlock.add:" "BLOCK* NameSystem.UnderReplicationBlock.add:"
@ -293,10 +293,10 @@ class UnderReplicatedBlocks implements Iterable<Block> {
" curPri " + curPri + " curPri " + curPri +
" oldPri " + oldPri); " oldPri " + oldPri);
} }
if(oldPri != LEVEL && oldPri != curPri) { if(oldPri != curPri) {
remove(block, oldPri); remove(block, oldPri);
} }
if(curPri != LEVEL && priorityQueues.get(curPri).add(block)) { if(priorityQueues.get(curPri).add(block)) {
if(NameNode.blockStateChangeLog.isDebugEnabled()) { if(NameNode.blockStateChangeLog.isDebugEnabled()) {
NameNode.blockStateChangeLog.debug( NameNode.blockStateChangeLog.debug(
"BLOCK* NameSystem.UnderReplicationBlock.update:" "BLOCK* NameSystem.UnderReplicationBlock.update:"