Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RATIS-889. Fix TestRaftSnapshotWithGrpc and TestRaftSnapshotWithSimulatedRpc #81

Merged
merged 1 commit into from
May 3, 2020

Conversation

adoroszlai
Copy link
Contributor

@adoroszlai adoroszlai commented Apr 30, 2020

What changes were proposed in this pull request?

Fix TestRaftSnapshotWithGrpc and TestRaftSnapshotWithSimulatedRpc: StateMachineUpdater unregisters metrics from the registry during stop, so the timer after restart is not the same instance as before. Thus, to verify that snapshot is taken during stop, we need to obtain the pre-stop timer.

Also verify the metric right after snapshot file is created.

https://issues.apache.org/jira/browse/RATIS-889

How was this patch tested?

Executed TestRaftSnapshot* multiple times. Also passed in CI:

https://github.com/adoroszlai/incubator-ratis/runs/633049769

@runzhiwang
Copy link
Contributor

LGTM. +1

@bshashikant bshashikant merged commit 8cf9ff4 into apache:master May 3, 2020
@adoroszlai adoroszlai deleted the RATIS-889 branch May 3, 2020 05:51
@adoroszlai
Copy link
Contributor Author

Thanks @runzhiwang for the review, and @bshashikant for reviewing and committing this.

symious pushed a commit to symious/ratis that referenced this pull request Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants