-
Notifications
You must be signed in to change notification settings - Fork 304
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
playground: Run TiFlash via args #2162
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,6 +67,12 @@ func TiFlashNotNeedSomeConfig(version string) bool { | |
return semver.Compare(version, "v5.4.0") >= 0 || strings.Contains(version, "nightly") | ||
} | ||
|
||
// TiFlashSupportRunWithoutConfig return true if the given version of TiFlash could be started without | ||
// a config file. | ||
func TiFlashSupportRunWithoutConfig(version string) bool { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Excellent work! Do you plan to add this function to to tiup-cluster? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Currently I don't have plans, because there seems to be no functional difference to users. Additionally, TiFlash's support to pure cli args is not battle-tested yet. If there are benefits then I think its worth to do, in future versions! |
||
return semver.Compare(version, "v7.1.0") >= 0 || strings.Contains(version, "nightly") | ||
} | ||
|
||
// TiCDCSupportConfigFile return if given version of TiCDC support config file | ||
func TiCDCSupportConfigFile(version string) bool { | ||
// config support since v4.0.13, ignore v5.0.0-rc | ||
|
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.
Is it compatible with older version of tikv
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.
Yes. I've checked with at least TiKV v4.0 and it is fine.