You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Tsz-wo Sze (Jira)" <ji...@apache.org> on 2022/07/15 00:49:00 UTC

[jira] [Updated] (RATIS-1621) TestLeaderElectionMetrics.testOnLeaderElectionCompletion fails sometimes

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

Tsz-wo Sze updated RATIS-1621:
------------------------------
    Fix Version/s: 2.3.1

> TestLeaderElectionMetrics.testOnLeaderElectionCompletion fails sometimes
> ------------------------------------------------------------------------
>
>                 Key: RATIS-1621
>                 URL: https://issues.apache.org/jira/browse/RATIS-1621
>             Project: Ratis
>          Issue Type: Bug
>          Components: test
>            Reporter: Benjamin Horowitz
>            Assignee: Benjamin Horowitz
>            Priority: Major
>             Fix For: 3.0.0, 2.3.1
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> When running unit tests I encountered the following failure:
> {noformat}
> java.lang.AssertionError: leaderElectionLatency = 0
> at org.junit.Assert.fail(Assert.java:89)
> at org.junit.Assert.assertTrue(Assert.java:42)
> at org.apache.ratis.server.metrics.TestLeaderElectionMetrics.testOnLeaderElectionCompletion(TestLeaderElectionMetrics.java:61) {noformat}
> It seems like the assertion {{assertTrue("leaderElectionLatency = " + leaderElectionLatency, leaderElectionLatency > 0L)}} may be too strict.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)