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

[BugFix] fix schema change hang when data loading concurrent with schema change (backport #23456) #23660

Merged
merged 1 commit into from
May 22, 2023

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented May 18, 2023

This is an automatic backport of pull request #23456 done by Mergify.


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

…ema change (#23456)

Fixes #23452
1. Assume there is a partition, current visible version is 13378, and
all loading task is finished.
2. Trigger schema change, it will create new replica, and at the same
time, one loading task is trigger and finished, and it's version is
13379.
3. Before send alter replica request, FE check that all loading task is
finished, but loading task on new create replica haven't finish yet and
V=1, LFV=13379.
4. Alter replica finish on BE, and BE send finish alter replica request
back to FE. When call `handleFinishAlterTask`, `checkState` fail because
LFV != -1.

(cherry picked from commit 084a19c)
@sonarcloud
Copy link

sonarcloud bot commented May 18, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@wanpengfei-git wanpengfei-git merged commit 16f2bd3 into branch-3.0 May 22, 2023
@wanpengfei-git wanpengfei-git deleted the mergify/bp/branch-3.0/pr-23456 branch May 22, 2023 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants