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.