-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Vault 20270 docker test raft wal #24463
Conversation
adding a migration test using snapshot restore
CI Results:
and 12 other tests |
Build Results: |
Removing vault-education-approvers from the PR as there don't seem to be any documentation updates. But feel free to re-add if need. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice. These test looks great!
// caching the old cluster's barrier keys | ||
oldBarrierKeys := cluster.GetBarrierKeys() | ||
// clean up the old cluster as there is no further use to it | ||
cluster.Cleanup() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This call has already been deferred from the beginning of the function. This line means Cleanup()
gets called twice on the original cluster. Is that problematic or no big deal?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No it won't cause any issue. It just tries to clean up whatever is left, and if there is nothing left or even had been cleaned up before, it just moves on.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Implement raft-wal * go mod tidy * add metrics, fix a panic * fix the panic for real this time * PR feedback * refactor tests to use a helper and reduce duplication * add a test to verify we don't use raft-wal if raft.db exists * add config to enable the verifier * add tests for parsing verification intervals * run the verifier in the background * wire up the verifier * go mod tidy * refactor config parsing * remove unused function * trying to get the verifier working * wire up some more verifier bits * sorted out an error, added a new test, lots of debug logging that needs to come out * fix a bug and remove all the debugging statements * make sure we close raft-wal stablestore too * run verifier tests for both boltdb and raft-wal * PR feedback * Vault 20270 docker test raft wal (#24463) * adding a migration test from boltdb to raftwal and back adding a migration test using snapshot restore * feedback * Update physical/raft/raft.go Co-authored-by: Paul Banks <[email protected]> * PR feedback * change verifier function * make this shorter * add changelog * Fix Close behavior * make supporting empty logs more explicit * add some godocs --------- Co-authored-by: hamid ghaf <[email protected]> Co-authored-by: Hamid Ghaf <[email protected]> Co-authored-by: Paul Banks <[email protected]>
Addresses https://hashicorp.atlassian.net/browse/VAULT-20270
Adding tests to satisfy the following: