sodonnel opened a new pull request, #4983:
URL: https://github.com/apache/ozone/pull/4983
## What changes were proposed in this pull request?
A cluster may have set the PipelineChoosingPolicy to the
HealthyPipelineChoosePolicy for Ratis, but it adds overhead and is not
necessary for EC, as the EC pipeline is always healthy:
```
public boolean isHealthy() {
// EC pipelines are not reported by the DN and do not have a leader. If a
// node goes stale or dead, EC pipelines will by closed like RATIS
pipelines
// but at the current time there are not other health metrics for EC.
if (replicationConfig.getReplicationType() == ReplicationType.EC) {
return true;
}
...
```
To allow for flexibility, add a new config for the ECPipelineChoosingPolicy
so it can be different from the Ratis policy.
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-8931
## How was this patch tested?
Modified and added to the tests in the PipelinePolicyFactory.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]