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) #23659

Closed
wants to merge 1 commit into from

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.
Cherry-pick of 084a19c has failed:

On branch mergify/bp/branch-2.4/pr-23456
Your branch is up to date with 'origin/branch-2.4'.

You are currently cherry-picking commit 084a19c63.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   fe/fe-core/src/main/java/com/starrocks/task/AlterReplicaTask.java

no changes added to commit (use "git add" and/or "git commit -a")

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/github/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally


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)

# Conflicts:
#	fe/fe-core/src/main/java/com/starrocks/task/AlterReplicaTask.java
@mergify mergify bot added the conflicts label May 18, 2023
@wanpengfei-git wanpengfei-git enabled auto-merge (rebase) May 18, 2023 07:19
@mergify mergify bot closed this May 18, 2023
auto-merge was automatically disabled May 18, 2023 07:19

Pull request was closed

@mergify
Copy link
Contributor Author

mergify bot commented May 18, 2023

@mergify[bot]: Backport conflict, please reslove the conflict and resubmit the pr

@mergify mergify bot deleted the mergify/bp/branch-2.4/pr-23456 branch May 18, 2023 07:19
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.

2 participants