Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
In MisReplicationHandler.getTargetDatanodes() the logic tries to get the required nodes and if it cannot it tries for less nodes to allow a partial recovery.
If the requested node count does not equal the number returned, it currently logs a warning:
if (targetDatanodes.size() < replicasToBeReplicated.size()) { LOG.warn("Placement Policy {} found only {} nodes for Container: {}," + " number of required nodes: {}, usedNodes : {}", containerPlacement.getClass(), targetDatanodes.size(), container.getContainerID(), replicasToBeReplicated.size(), usedDns); }
In such a case, after sending the commands we can, it should thrown an exception to it is requeued for retry later, rather than returning successfully.
Attachments
Issue Links
- links to