-
Notifications
You must be signed in to change notification settings - Fork 365
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
Add round-trip test for time-series with a TTL index #777
base: master
Are you sure you want to change the base?
Conversation
|
||
// GetFCV is like GetFCVErr but panicks instead of returning an error. | ||
// Avoid this function in new code. | ||
func GetFCV(s *mongo.Client) string { |
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.
nit: should we call this GetFCVFatal or similar?
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.
Nvm this is in use already and renaming requires renaming everything
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.
I mean, renaming is easy enough with IDEs … I’ll call it GetFCVOrPanic
.
restore, err := getRestoreWithArgs(args...) | ||
require.NoError(t, err, "restore should run") | ||
defer restore.Close() | ||
|
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.
Are there any specific checks related to restoration of the TTL index that we should include in this test? Like checking if the index was restored with the right TTL for example
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.
Doh! Yes, I should add that.
This also adds a new convenience for skipping a test if the cluster’s FCV isn’t recent enough.