Stephen O'Donnell created HDDS-8337:
---------------------------------------
Summary: ReplicationManager: MisReplicationHandler should throw an
exception if partially successful
Key: HDDS-8337
URL: https://issues.apache.org/jira/browse/HDDS-8337
Project: Apache Ozone
Issue Type: Sub-task
Reporter: Stephen O'Donnell
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:
{code}
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);
}
{code}
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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]