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

[fix](group commit) fix repaly wal check label status (#38883) #38997

Merged
merged 1 commit into from
Aug 7, 2024

Conversation

mymeiyi
Copy link
Contributor

@mymeiyi mymeiyi commented Aug 7, 2024

pick #38883

When replay wal, it firstly abort the txn with the label but does not
check the abort result.
And when begin txn of replay, if FE returns `LabelAlreadyUsedException`,
it consider the load is success in previous group commit load or repaly
wal, and delete this wal directly.
But `LabelAlreadyUsedException` means there is a txn with this label,
the txn may be in `PREPARE / RUNNING / COMMITTED / VISIBLE` status(the
abort txn in first step may fail), so replay wal should check both
`LabelAlreadyUsedException` and txn status is `COMMITTED / VISIBLE`.

This pr also add a case for replay wal with schema change.
@doris-robot
Copy link

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@mymeiyi
Copy link
Contributor Author

mymeiyi commented Aug 7, 2024

run buildall

Copy link
Contributor

github-actions bot commented Aug 7, 2024

clang-tidy review says "All clean, LGTM! 👍"

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 36.39% (9266/25461)
Line Coverage: 27.91% (75817/271616)
Region Coverage: 26.76% (38999/145743)
Branch Coverage: 23.48% (19792/84300)
Coverage Report: http://coverage.selectdb-in.cc/coverage/7025d1df83ee809d2f4d4ccbd85d7bfc056adda1_7025d1df83ee809d2f4d4ccbd85d7bfc056adda1/report/index.html

@yiguolei yiguolei merged commit 749c9f7 into apache:branch-2.1 Aug 7, 2024
20 of 22 checks passed
@yiguolei yiguolei mentioned this pull request Sep 5, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants