-
Notifications
You must be signed in to change notification settings - Fork 49
version: remove hard-coded max version guard for new architecture #4682
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
base: master
Are you sure you want to change the base?
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 | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -42,14 +42,14 @@ var ( | |||||||||||||||
| minPDVersion = semver.New("7.5.0-alpha") | ||||||||||||||||
| // maxPDVersion is the version of the maximum compatible PD. | ||||||||||||||||
| // Compatible versions are in [minPDVersion, maxPDVersion) | ||||||||||||||||
| maxPDVersion = semver.New("15.0.0") | ||||||||||||||||
| maxPDVersion = semver.New("9999.0.0") | ||||||||||||||||
|
|
||||||||||||||||
| // MinTiKVVersion is the version of the minimal compatible TiKV. | ||||||||||||||||
| // The min version should be 7.5 for new arch. | ||||||||||||||||
| MinTiKVVersion = semver.New("7.5.0-alpha") | ||||||||||||||||
| // maxTiKVVersion is the version of the maximum compatible TiKV. | ||||||||||||||||
| // Compatible versions are in [MinTiKVVersion, maxTiKVVersion) | ||||||||||||||||
| maxTiKVVersion = semver.New("15.0.0") | ||||||||||||||||
| maxTiKVVersion = semver.New("9999.0.0") | ||||||||||||||||
|
|
||||||||||||||||
| // New Arch Starts From 9.0.0, | ||||||||||||||||
| // we use the minimal release version as default. | ||||||||||||||||
|
|
@@ -59,7 +59,7 @@ var ( | |||||||||||||||
| MinTiCDCVersion = semver.New("7.5.0-alpha") | ||||||||||||||||
| // MaxTiCDCVersion is the version of the maximum allowed TiCDC version. | ||||||||||||||||
| // for version `x.y.z`, max allowed `x+2.0.0` | ||||||||||||||||
| MaxTiCDCVersion = semver.New("15.0.0-alpha") | ||||||||||||||||
| MaxTiCDCVersion = semver.New("9999.0.0-alpha") | ||||||||||||||||
|
Comment on lines
60
to
+62
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. The comment on line 61 ( Also, as with the other max version variables, consider defining
Comment on lines
60
to
+62
Contributor
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. Update stale TiCDC max-version comment. The comment still describes an Proposed comment fix- // MaxTiCDCVersion is the version of the maximum allowed TiCDC version.
- // for version `x.y.z`, max allowed `x+2.0.0`
+ // MaxTiCDCVersion is a sentinel upper bound to avoid rejecting newer upstream versions.
+ // Compatible versions are in [MinTiCDCVersion, MaxTiCDCVersion).
MaxTiCDCVersion = semver.New("9999.0.0-alpha")📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||
| ) | ||||||||||||||||
|
|
||||||||||||||||
| var versionHash = regexp.MustCompile("-[0-9]+-g[0-9a-f]{7,}(-dev)?") | ||||||||||||||||
|
|
||||||||||||||||
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.
The comments on lines 44 and 51, which describe the compatible version range as
[min, max), are now misleading since this change effectively removes the upper bound. Please update them to clarify that no upper version limit is enforced.Additionally, using the literal
"9999.0.0"is using a magic number. It would be more maintainable and readable to define this as a constant with a descriptive name (e.g.,unboundedMaxVersion) and use that constant here.