Uploaded image for project: 'Ratis'
  1. Ratis
  2. RATIS-863 Fix Ratis Unit Test Failures
  3. RATIS-848

Failed UT: TestRaftSnapshotWithGrpc.testBasicInstallSnapshot

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • None
    • 1.0.0
    • test
    • None

    Description

      Why unit test TestRaftSnapshotWithGrpc.testBasicInstallSnapshot failed?
      In the test, leader take snapshot, then add two followers, then leader restart, then verifyTakeSnapshotMetric.
      It must be failed when verifyTakeSnapshotMetric after restarting leader. Because restart leader will create a new instance of RaftServer, the metric of take snapshot is clean.

      How to fix ?
      verifyTakeSnapshotMetric after leader take snapshot.

      Attachments

        1. RATIS-848.001.patch
          2 kB
          runzhiwang

        Issue Links

          Activity

            People

              yjxxtd runzhiwang
              yjxxtd runzhiwang
              Votes:
              0 Vote for this issue
              Watchers:
              6 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 - 10m
                  10m