Closed HuSharp closed 1 month ago
@csuzhangxc PTAL, thx~
/run-all-tests
Attention: Patch coverage is 3.50877%
with 110 lines
in your changes missing coverage. Please review.
Project coverage is 33.08%. Comparing base (
9ef26f8
) to head (d02d9b8
). Report is 13 commits behind head on master.:exclamation: There is a different number of reports uploaded between BASE (9ef26f8) and HEAD (d02d9b8). Click for more details.
HEAD has 1 upload less than BASE
| Flag | BASE (9ef26f8) | HEAD (d02d9b8) | |------|------|------| |unittest|1|0|
/run-all-tests
/run-all-tests
/run-pull-e2e-kind-across-kubernetes
/run-pull-e2e-kind-tikv-scale-simultaneously
/run-pull-e2e-kind-tngm
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: csuzhangxc
The full list of commands accepted by this bot can be found here.
The pull request process is described here
Timeline:
2024-08-13 09:26:04.210377006 +0000 UTC m=+260048.913846641
: :ballot_box_with_check: agreed by csuzhangxc./run-pull-e2e-kind-serial
/run-pull-e2e-kind
/run-pull-e2e-kind
/run-pull-e2e-kind-across-kubernetes
/run-pull-e2e-kind-across-kubernetes
/run-pull-e2e-kind
/cherry-pick release-1.6
@csuzhangxc: new pull request created to branch release-1.6
: #5709.
What problem does this PR solve?
Ref #1235, Ref https://github.com/tikv/pd/pull/8157
What is changed and how does it work?
summary
Let's assume there are three tso nodes scheduling-0, scheduling-1, scheduling-2. tidb-operator will upgrade them in the order 2->0. If
scheduling-1
is primary, it is possible that when upgradingscheduling-1
, the primary will be transferred toscheduling-0
, and then the primary will be transferred again when upgradingscheduling-0
.scheduling-1
is upgraded, the primary is transferred toscheduling-2
, reducing the number of transfers.Using API
When I created 3 scheduling pods with
8.3.0
PD versioncheck log
Let's upgrade 3 scheduling, and primary is
scheduling-2
now.Code changes
Tests
Side effects
Related changes
Release Notes
Please refer to Release Notes Language Style Guide before writing the release note.