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

dr-autosync: canSync and hasMajority can be calculated wrong when placement rule config is complex #7201

Closed
disksing opened this issue Oct 13, 2023 · 1 comment · Fixed by #7202
Assignees
Labels

Comments

@disksing
Copy link
Contributor

Bug Report

What did you do?

deploy a dr-autosync cluster, setup 3 voters in primary dc, 2 voters in dr dc. the tikv-servers in dr dc splits into 2 different logic zones and use placement rule to place 1 voter in each logic zone.

What did you expect to see?

kill all tikv-servers in a logic zone, the dr-autosync state should not switch to async_wait or async, as there is still 1 voter in dr zone.

What did you see instead?

the state is switched to async_wait and then async.

What version of PD are you using (pd-server -V)?

master / v6.5.5

@disksing disksing added type/bug The issue is confirmed as a bug. affects-6.5 labels Oct 13, 2023
@disksing disksing self-assigned this Oct 13, 2023
disksing added a commit to oh-my-tidb/pd that referenced this issue Oct 13, 2023
fix tikv#7201

Signed-off-by: disksing <i@disksing.com>
ti-chi-bot bot pushed a commit that referenced this issue Oct 16, 2023
ti-chi-bot pushed a commit to ti-chi-bot/pd that referenced this issue Oct 16, 2023
close tikv#7201

Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
ti-chi-bot bot pushed a commit that referenced this issue Oct 16, 2023
…7202) (#7209)

close #7201

Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
Signed-off-by: disksing <i@disksing.com>

Co-authored-by: disksing <i@disksing.com>
disksing added a commit to oh-my-tidb/pd that referenced this issue Oct 30, 2023
…ikv#7202) (tikv#7209)

close tikv#7201

Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
Signed-off-by: disksing <i@disksing.com>

Co-authored-by: disksing <i@disksing.com>
ti-chi-bot pushed a commit to ti-chi-bot/pd that referenced this issue Feb 1, 2024
close tikv#7201

Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
disksing added a commit to oh-my-tidb/pd that referenced this issue Feb 1, 2024
…ikv#7202) (tikv#7209)

close tikv#7201

Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
Signed-off-by: disksing <i@disksing.com>

Co-authored-by: disksing <i@disksing.com>
@mayjiang0203
Copy link

/remove-label affects-7.5
This bug was fixed before v7.5 release, so remove affects-7.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging a pull request may close this issue.

3 participants