[ 
https://issues.apache.org/jira/browse/HDDS-6470?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kaijie Chen updated HDDS-6470:
------------------------------
    Description: 
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}
Here is the result of running this test 100x

[https://github.com/kaijchen/ozone/runs/5609191955]

  was:
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}
 

Here is the result of running this test 100x

https://github.com/kaijchen/ozone/runs/5609191955


> Fix TestOzoneManagerHAWithData#testOMRestart()
> ----------------------------------------------
>
>                 Key: HDDS-6470
>                 URL: https://issues.apache.org/jira/browse/HDDS-6470
>             Project: Apache Ozone
>          Issue Type: Bug
>            Reporter: Kaijie Chen
>            Assignee: Kaijie Chen
>            Priority: Major
>
> 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}
> Here is the result of running this test 100x
> [https://github.com/kaijchen/ozone/runs/5609191955]



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to