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

schedule: add IsFeatureSupported in Cluster Interface #2735

Merged
merged 12 commits into from
Aug 13, 2020

Conversation

HunDunDM
Copy link
Member

@HunDunDM HunDunDM commented Aug 7, 2020

Signed-off-by: Zheng Xiangsheng hundundm@gmail.com

What problem does this PR solve?

  • schedule: add IsFeatureSupported in Cluster Interface
  • add JointConsensus Feature type

What is changed and how it works?

  • mv version.go to versioninfo package

Check List

Tests

  • Unit test

Release note

Signed-off-by: Zheng Xiangsheng <hundundm@gmail.com>
@HunDunDM HunDunDM self-assigned this Aug 7, 2020
@HunDunDM HunDunDM added component/cluster Cluster logic. component/schedule Scheduling logic. labels Aug 7, 2020
Signed-off-by: Zheng Xiangsheng <hundundm@gmail.com>
server/cluster/cluster_worker.go Outdated Show resolved Hide resolved
server/grpc_service.go Outdated Show resolved Hide resolved
server/server.go Outdated Show resolved Hide resolved
server/util.go Outdated Show resolved Hide resolved
@disksing
Copy link
Contributor

disksing commented Aug 7, 2020

I think IsFeatureSupported and IsCompatible should merge into one function.
Consider this case: A feature is introduced by 5.1.1, after all tikv upgrade to 5.1.1, the feature is enabled. Then another 5.1.0 tikv starts to join the cluster. Since PD use IsCompatible to check, the TiKV will join successfully.

Signed-off-by: Zheng Xiangsheng <hundundm@gmail.com>
Signed-off-by: Zheng Xiangsheng <hundundm@gmail.com>
Signed-off-by: Zheng Xiangsheng <hundundm@gmail.com>
Signed-off-by: Zheng Xiangsheng <hundundm@gmail.com>
Signed-off-by: Zheng Xiangsheng <hundundm@gmail.com>
server/cluster/cluster.go Outdated Show resolved Hide resolved
@ti-srebot ti-srebot added the status/LGT1 Indicates that a PR has LGTM 1. label Aug 10, 2020
Signed-off-by: Zheng Xiangsheng <hundundm@gmail.com>
server/cluster/cluster.go Outdated Show resolved Hide resolved
Signed-off-by: Zheng Xiangsheng <hundundm@gmail.com>
Signed-off-by: Zheng Xiangsheng <hundundm@gmail.com>
Signed-off-by: Zheng Xiangsheng <hundundm@gmail.com>

# Conflicts:
#	pkg/mock/mockcluster/mockcluster.go
#	server/schedule/opt/opts.go
@HunDunDM
Copy link
Member Author

/run-all-tests

Copy link
Member

@rleungx rleungx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ti-srebot ti-srebot removed the status/LGT1 Indicates that a PR has LGTM 1. label Aug 13, 2020
@ti-srebot ti-srebot added the status/LGT2 Indicates that a PR has LGTM 2. label Aug 13, 2020
@disksing
Copy link
Contributor

/merge

@ti-srebot ti-srebot added the status/can-merge Indicates a PR has been approved by a committer. label Aug 13, 2020
@ti-srebot
Copy link
Contributor

/run-all-tests

@ti-srebot ti-srebot merged commit 9c3180a into tikv:master Aug 13, 2020
@HunDunDM HunDunDM deleted the is-feature-supported branch August 14, 2020 03:17
disksing pushed a commit to oh-my-tidb/pd that referenced this pull request Aug 19, 2020
Signed-off-by: Zheng Xiangsheng <hundundm@gmail.com>
ZenoTan pushed a commit to ZenoTan/pd that referenced this pull request Aug 24, 2020
Signed-off-by: Zheng Xiangsheng <hundundm@gmail.com>
Signed-off-by: ZenoTan <zenotan1998@gmail.com>
jyz0309 pushed a commit to jyz0309/pd that referenced this pull request Aug 24, 2020
Signed-off-by: Zheng Xiangsheng <hundundm@gmail.com>
jyz0309 pushed a commit to jyz0309/pd that referenced this pull request Aug 24, 2020
Signed-off-by: Zheng Xiangsheng <hundundm@gmail.com>
@HunDunDM HunDunDM mentioned this pull request Sep 2, 2020
37 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/cluster Cluster logic. component/schedule Scheduling logic. status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants