[ https://issues.apache.org/jira/browse/RATIS-848?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tsz-wo Sze updated RATIS-848: ----------------------------- Component/s: test Priority: Minor (was: Major) > Failed UT: TestRaftSnapshotWithGrpc.testBasicInstallSnapshot > ------------------------------------------------------------ > > Key: RATIS-848 > URL: https://issues.apache.org/jira/browse/RATIS-848 > Project: Ratis > Issue Type: Bug > Components: test > Reporter: runzhiwang > Assignee: runzhiwang > Priority: Minor > Attachments: RATIS-848.001.patch > > > *Why unit test TestRaftSnapshotWithGrpc.testBasicInstallSnapshot failed?* > In the test, leader take snapshot, then add two followers, then [leader > restart|https://github.com/apache/incubator-ratis/blob/master/ratis-server/src/test/java/org/apache/ratis/statemachine/RaftSnapshotBaseTest.java#L234], > then > [verifyTakeSnapshotMetric|https://github.com/apache/incubator-ratis/blob/master/ratis-server/src/test/java/org/apache/ratis/statemachine/RaftSnapshotBaseTest.java#L236]. > > 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. -- This message was sent by Atlassian Jira (v8.3.4#803005)