diff --git a/pkg/version/check.go b/pkg/version/check.go index 2be6566f2a3..92c8538d622 100644 --- a/pkg/version/check.go +++ b/pkg/version/check.go @@ -40,13 +40,13 @@ var ( minPDVersion = semver.New("5.1.0-alpha") // maxPDVersion is the version of the maximum compatible PD. // Compatible versions are in [minPDVersion, maxPDVersion) - maxPDVersion = semver.New("8.0.0") + maxPDVersion = semver.New("9.0.0") // MinTiKVVersion is the version of the minimal compatible TiKV. MinTiKVVersion = semver.New("5.1.0-alpha") // maxTiKVVersion is the version of the maximum compatible TiKV. // Compatible versions are in [MinTiKVVersion, maxTiKVVersion) - maxTiKVVersion = semver.New("8.0.0") + maxTiKVVersion = semver.New("9.0.0") // CaptureInfo.Version is added since v4.0.11, // we use the minimal release version as default. @@ -56,7 +56,7 @@ var ( MinTiCDCVersion = semver.New("6.3.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("8.0.0-alpha") + MaxTiCDCVersion = semver.New("9.0.0-alpha") ) var versionHash = regexp.MustCompile("-[0-9]+-g[0-9a-f]{7,}(-dev)?") diff --git a/pkg/version/check_test.go b/pkg/version/check_test.go index fad6a1587b8..9131e76bb9e 100644 --- a/pkg/version/check_test.go +++ b/pkg/version/check_test.go @@ -449,21 +449,21 @@ func TestCheckTiCDCVersion(t *testing.T) { versions = map[string]struct{}{ "v6.3.0": {}, - "v8.0.0-alpha": {}, + "v9.0.0-alpha": {}, } err = CheckTiCDCVersion(versions) require.Regexp(t, "TiCDC .* not supported, only support version less than.*", err) versions = map[string]struct{}{ "v6.3.0": {}, - "v8.0.0-master": {}, + "v9.0.0-master": {}, } err = CheckTiCDCVersion(versions) require.Regexp(t, "TiCDC .* not supported, only support version less than.*", err) versions = map[string]struct{}{ "v6.3.0": {}, - "v8.0.0": {}, + "v9.0.0": {}, } err = CheckTiCDCVersion(versions) require.Regexp(t, "TiCDC .* not supported, only support version less than.*", err)