Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Invalid
-
None
-
None
-
None
-
None
Description
Found while debugging testcases in HDFS-8647
Scenario:
=======
Start a cluster with Single rack with three DN's
write a file with RF=3
adde two Nodes with different racks
As per blockplacement policy (Rack Awareness) atleast one replica needs to replicate to newly added rack.But it is not happening..Because of following reason.
when cluster was single rack,block will be removed from neededReplications after 3 replicas.
later, after adding new rack, only replications will happen which are present in neededReplications
So for the blocks which already have enough replicas, new rack replications will not take place..