Skip to content

branch-2.1: [Bug](materialized-view) Fixed the problem of using drop table force and create mv stmt at the… #41580#50133

Merged
yiguolei merged 1 commit intobranch-2.1from
auto-pick-41580-branch-2.1
Apr 18, 2025
Merged

branch-2.1: [Bug](materialized-view) Fixed the problem of using drop table force and create mv stmt at the… #41580#50133
yiguolei merged 1 commit intobranch-2.1from
auto-pick-41580-branch-2.1

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

Cherry-picked from #41580

…and create mv stmt at the… (#41580)

… same time causing fe startup failure.

## Proposed changes
Fixed the problem of using drop table force and create mv stmt at the
same time causing fe startup failure.

Consider this scenario:
create mv -> drop table force -> create mv stmt cancelled
At this time there is a checkpoint like this:
[---------checkpoint---------]   [-------- editlog--------]
create mv -> drop table force -> create mv stmt cancelled

In this case, when read meta and parse create mv stmt, it will fail
because there is no corresponding table, further causing fe startup
failure.
@github-actions github-actions bot requested a review from yiguolei as a code owner April 17, 2025 07:37
@hello-stephen
Copy link
Copy Markdown
Contributor

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

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@dataroaring dataroaring reopened this Apr 17, 2025
@hello-stephen
Copy link
Copy Markdown
Contributor

run buildall

@yiguolei yiguolei merged commit 77ea907 into branch-2.1 Apr 18, 2025
20 checks passed
@github-actions github-actions bot deleted the auto-pick-41580-branch-2.1 branch April 18, 2025 03:30
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.

4 participants