[
https://issues.apache.org/jira/browse/HDDS-17131?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated HDDS-17131:
----------------------------------
Labels: pull-request-available (was: )
> MiniOzoneHAClusterImpl#transferOMLeadershipToAnotherNode removes the old
> leader from the cluster's OM list
> ----------------------------------------------------------------------------------------------------------
>
> Key: HDDS-17131
> URL: https://issues.apache.org/jira/browse/HDDS-17131
> Project: Apache Ozone
> Issue Type: Sub-task
> Components: test
> Reporter: Siyao Meng
> Assignee: Andy Huang
> Priority: Major
> Labels: pull-request-available
>
> {{transferOMLeadershipToAnotherNode}} does {{List<OzoneManager> omList =
> getOzoneManagersList(); omList.remove(currentLeader);}}.
> {{getOzoneManagersList()}} returns the backing list of
> {{MiniOzoneHAService}}, so the old leader is removed from the cluster: it no
> longer appears in {{getOzoneManagersList()}}, {{getOzoneManager(int)}}
> indexes shift, and {{stop()}} does not stop it. The target is also
> {{omList.get(0)}}, which may be a stopped OM.
> Used by TestOMHALeaderSpecificACLEnforcement and
> TestOzoneManagerHAFollowerReadWithAllRunning.
> *Fix:* copy the list and pick a running OM other than the current leader.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]