Uploaded image for project: 'Ratis'
  1. Ratis
  2. RATIS-1621

TestLeaderElectionMetrics.testOnLeaderElectionCompletion fails sometimes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.4.0, 3.0.0
    • test
    • None

    Description

      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) may be too strict.

      Attachments

        Issue Links

          Activity

            People

              b9r5 Benjamin Horowitz
              b9r5 Benjamin Horowitz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h