[
https://issues.apache.org/jira/browse/HDDS-6713?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Attila Doroszlai updated HDDS-6713:
-----------------------------------
Parent: HDDS-9931
Issue Type: Sub-task (was: Improvement)
> Avoid the need to cast to MiniOzoneHAClusterImpl
> ------------------------------------------------
>
> Key: HDDS-6713
> URL: https://issues.apache.org/jira/browse/HDDS-6713
> Project: Apache Ozone
> Issue Type: Sub-task
> Components: test
> Reporter: Attila Doroszlai
> Priority: Minor
>
> {{MiniOzoneHAClusterImpl.Builder}} should return HA-specific implementation
> to avoid forcing test cases to cast the return value.
> {code:title=https://github.com/apache/ozone/blob/d9c56aec00d57a6d26b3b8ec3946e7eb93531ed0/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/MiniOzoneHAClusterImpl.java#L393}
> public MiniOzoneCluster build() throws IOException {
> {code}
> To allow chained method calls, it should also change return type in methods
> inherited from the parent class, e.g.:
> {code:title=https://github.com/apache/ozone/blob/d9c56aec00d57a6d26b3b8ec3946e7eb93531ed0/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/MiniOzoneCluster.java#L362}
> public Builder setClusterId(String id) {
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]