Skip to content
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

v5.2.3 upgrade to v5.4.0-nightly-20211221 fail for "server_config is only supported with TiCDC version v4.0.13 or later" #4149

Closed
seiya-annie opened this issue Dec 30, 2021 · 9 comments · Fixed by pingcap/tiup#1702
Assignees
Labels
area/ticdc Issues or PRs related to TiCDC. found/automation Bugs found by automation cases severity/minor type/bug The issue is confirmed as a bug.

Comments

@seiya-annie
Copy link

What did you do?

  1. install v5.2.3 tidb cluster, with config:
    cdc:
    sorter.max-memory-consumption: 1073741824
  2. upgrade to v5.4.0-nightly-20211221
  3. upgrade fail

What did you expect to see?

upgrade success

What did you see instead?

2021-12-30T09:17:51.941+0800 INFO Execute command finished {"code": 1, "error": "init config failed: cdc-peer:8300: server_config is only supported with TiCDC version v4.0.13 or later", "errorVerbose": "server_config is only supported with TiCDC version v4.0.13 or later\ngithub.com/pingcap/tiup/pkg/cluster/spec.(*CDCInstance).InitConfig\n\tgithub.com/pingcap/tiup/pkg/cluster/spec/cdc.go:168\ngithub.com/pingcap/tiup/pkg/cluster/task.(*InitConfig).Execute\n\tgithub.com/pingcap/tiup/pkg/cluster/task/init_config.go:51\ngithub.com/pingcap/tiup/pkg/cluster/task.(*Serial).Execute\n\tgithub.com/pingcap/tiup/pkg/cluster/task/task.go:85\ngithub.com/pingcap/tiup/pkg/cluster/task.(*Parallel).Execute.func1\n\tgithub.com/pingcap/tiup/pkg/cluster/task/task.go:142\nruntime.goexit\n\truntime/asm_amd64.s:1581\ninit config failed: cdc-peer:8300"}

Versions of the cluster

Upstream TiDB cluster version (execute SELECT tidb_version(); in a MySQL client):

(paste TiDB cluster version here)

TiCDC version (execute cdc version):
[release-version=v5.2.3] [git-hash=a04ddac9fe83c8bdff267e4c44150060ea05f5ec] [git-branch=heads/refs/tags/v5.2.3] [utc-build-time="2021-11-26 07:39:58"] [go-version="go version go1.16.4 linux/amd64"]

(paste TiCDC version here)
@seiya-annie seiya-annie added type/bug The issue is confirmed as a bug. area/ticdc Issues or PRs related to TiCDC. labels Dec 30, 2021
@lonng
Copy link
Contributor

lonng commented Dec 30, 2021

I think it's a bug of TiUP-Cluster component, reference: https://github.com/pingcap/tiup/blob/934f837032b3d918b30268566b9b9ebfa4f0c479/pkg/cluster/spec/cdc.go#L168

	if semver.Compare(clusterVersion, "v4.0.13") == -1 {
		if len(globalConfig)+len(instanceConfig) > 0 {
			return perrs.New("server_config is only supported with TiCDC version v4.0.13 or later")
		}
	}

@overvenus overvenus self-assigned this Dec 30, 2021
@lonng
Copy link
Contributor

lonng commented Dec 30, 2021

@AstroProfundis Can you assign this issue to somebody to help us fix it?

@AstroProfundis
Copy link

@srstack PTAL

@overvenus
Copy link
Member

Does tiup trim "v" for "v5.4.0-nightly-20211221"? It may be related. See https://go.dev/play/p/kdSVGyxq7VF.

@lonng
Copy link
Contributor

lonng commented Dec 30, 2021

@overvenus This bug is caused by tiup cluster upgrade <cluster-name> nightly and the nightly don't be mapped to actual cluster version v5.4.0-nightly-20211221 correctly.

@Tammyxia I have changed this bug to severity/minor because it only affects the nightly version.

@seiya-annie seiya-annie added the found/automation Bugs found by automation cases label Dec 30, 2021
@srstack
Copy link

srstack commented Dec 30, 2021

@seiya-annie
Can you tell me the version of TiUP?

@lonng
Copy link
Contributor

lonng commented Dec 31, 2021

@seiya-annie
Can you tell me the version of TiUP?

I think this bug exists all versions of tiup.

@srstack
Copy link

srstack commented Dec 31, 2021

@seiya-annie
Can you tell me the version of TiUP?

I think this bug exists all versions of tiup.

Yes, the nightly version number has been completed for the initconfig operation

@AstroProfundis
Copy link

@seiya-annie Could you help verify if pingcap/tiup#1702 fixes the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ticdc Issues or PRs related to TiCDC. found/automation Bugs found by automation cases severity/minor type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants