Skip to content

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

@github-actions
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
@yiguolei yiguolei mentioned this pull request Sep 5, 2024
3 tasks
@mymeiyi mymeiyi deleted the pick-38883 branch September 10, 2025 06:38
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