- chooseReplicaToDelete
Decide whether deleting the specified replica of the block still makes the block
conform to the conf
- chooseTarget
- useDelHint
Check if we can use delHint.
- addToExcludedNodes
Add localMachine and related nodes to excludedNodes for next replica choosing.
In sub class, we can
- chooseDataNode
Choose a datanode from the given scope with specified storage type.
- chooseFromNextRack
- chooseLocalRack
Choose one node from the rack that localMachine is on. if no such node is
available, choose one node
- chooseLocalStorage
Choose localMachine as the target. if localMachine is not available, choose a
node on the same rack
- chooseRandom
Randomly choose numOfReplicas targets from the given scope.
- chooseRemoteRack
Choose numOfReplicas nodes from the racks that localMachine is NOT on. if not
enough nodes are avail
- getMaxNodesPerRack
Calculate the maximum number of replicas to allocate per rack. It also limits
the total number of re
- getPipeline
Return a pipeline of nodes. The pipeline is formed finding a shortest path that
starts from the writ