Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

[cherry-pick] remove scheduler(#426)#431

Merged
ti-srebot merged 3 commits intopingcap:release-4.0from
YuJuncen:cp-426
Jul 22, 2020
Merged

[cherry-pick] remove scheduler(#426)#431
ti-srebot merged 3 commits intopingcap:release-4.0from
YuJuncen:cp-426

Conversation

@YuJuncen
Copy link
Collaborator

@YuJuncen YuJuncen commented Jul 21, 2020

What problem does this PR solve?

fixed #412.

What is changed and how it works?

Firstly, we extract the logic of removing schedulers to conn package, as a method of conn.Manager.
Then, we add a flag that controls whether to remove scheduler when backing up.
Finally, we call the extracted method on backup if the flag is set.

Check List

Tests

  • Integration test

Release Note

  • Add an option that can be used to speed up backing up by changing some cluster config.

* *: move remove schedulers logic out from restore.

* task: add flag of remove scheduler

* tests: add tests of remove scheduler

* task: move remove-scheduler flag to backup config

* backup: return staged undo function.

Signed-off-by: Hillium <maruruku@stu.csust.edu.cn>

* conn, backup: run undo anyway.

Signed-off-by: Hillium <maruruku@stu.csust.edu.cn>

* backup: hide remove schedulers flag

Signed-off-by: Hillium <maruruku@stu.csust.edu.cn>

Co-authored-by: 3pointer <luancheng@pingcap.com>
@sre-bot
Copy link
Contributor

sre-bot commented Jul 21, 2020

No release note, Please follow https://github.com/pingcap/community/blob/master/contributors/release-note-checker.md

@YuJuncen
Copy link
Collaborator Author

/run-all-tests

Copy link
Collaborator

@3pointer 3pointer 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 added the status/LGT1 LGTM1 label Jul 22, 2020
@ti-srebot ti-srebot removed the status/LGT1 LGTM1 label Jul 22, 2020
@ti-srebot ti-srebot added the status/LGT2 LGTM2 label Jul 22, 2020
@kennytm
Copy link
Collaborator

kennytm commented Jul 22, 2020

/merge

@ti-srebot
Copy link
Contributor

/run-all-tests

@ti-srebot ti-srebot merged commit 4650540 into pingcap:release-4.0 Jul 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants