Hi Ben, Thanks for checking. The test may be too strict. It fails occasionally. Do you have any suggestions for fixing it? Please feel free to file a JIRA.
Tsz-Wo On Fri, Jul 8, 2022 at 3:25 PM Ben Horowitz <[email protected]> wrote: > Hi, > > When running unit tests I encountered the following failure: > > 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) > > It seems like the assertion > assertTrue("leaderElectionLatency = " + leaderElectionLatency, > leaderElectionLatency > 0L); > is too strict? > > Ben >
