[
https://issues.apache.org/jira/browse/HDDS-6470?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Attila Doroszlai resolved HDDS-6470.
------------------------------------
Resolution: Fixed
> Fix TestOzoneManagerHAWithData#testOMRestart()
> ----------------------------------------------
>
> Key: HDDS-6470
> URL: https://issues.apache.org/jira/browse/HDDS-6470
> Project: Apache Ozone
> Issue Type: Bug
> Components: test
> Reporter: Kaijie Chen
> Assignee: Kaijie Chen
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.3.0
>
>
> This assertion is wrong in TestOzoneManagerHAWithData#testOMRestart().
> Because the lagging follower OM may catch up asynchronously.
> {code:java}
> // Restart the stopped OM.
> followerOM1.restart();
>
> // Get the latest snapshotIndex from the leader OM.
> long leaderOMSnaphsotIndex = leaderOM.getRatisSnapshotIndex();
>
> // The recently started OM should be lagging behind the leader OM.
> long followerOMLastAppliedIndex =
> followerOM1.getOmRatisServer().getLastAppliedTermIndex().getIndex();
> Assert.assertTrue(
> followerOMLastAppliedIndex < leaderOMSnaphsotIndex);
> {code}
> Example of CI failure on master:
> [https://github.com/apache/ozone/runs/5593803014]
> Result of running this test 100x:
> [https://github.com/kaijchen/ozone/actions/runs/2007487998]
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]