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

Throw AssumptionViolatedException if a test fails to change leader

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.3.0
    • test
    • None

    Description

      In some (unlucky) cases, tests may fail to change leader which leads to a failure. Testing leader change is not an objective of the particular tests. When leader change fails, these tests becomes meaningless.

      We may throw AssumptionViolatedException (new in junit 4.12) so that failing to change leader won't generate a test case failure.

      Attachments

        1. r494_20190305b.patch
          14 kB
          Tsz-wo Sze
        2. r494_20190305.patch
          11 kB
          Tsz-wo Sze

        Activity

          People

            szetszwo Tsz-wo Sze
            szetszwo Tsz-wo Sze
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: