HDFS-9790. HDFS Balancer should exit with a proper message if upgrade is not finalized (Contributed by Xiaobing Zhou)
This commit is contained in:
parent
33ce7f6c07
commit
9b959f3ee7
|
@ -2739,6 +2739,9 @@ Release 2.8.0 - UNRELEASED
|
|||
|
||||
HDFS-9788. Incompatible tag renumbering in HeartbeatResponseProto. (wang)
|
||||
|
||||
HDFS-9790. HDFS Balancer should exit with a proper message if upgrade is
|
||||
not finalized. (Xiaobing Zhou via Arpit Agarwal)
|
||||
|
||||
Release 2.7.3 - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -586,6 +586,8 @@ public class Balancer {
|
|||
// Should not run the balancer during an unfinalized upgrade, since moved
|
||||
// blocks are not deleted on the source datanode.
|
||||
if (!runDuringUpgrade && nnc.isUpgrading()) {
|
||||
System.err.println("Balancer exiting as upgrade is not finalized, "
|
||||
+ "please finalize the HDFS upgrade before running the balancer.");
|
||||
return newResult(ExitStatus.UNFINALIZED_UPGRADE, bytesLeftToMove, -1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue