Skip to content

branch-4.1: [fix](mtmv) reuse Gson instance in MTMVTask.getTvfInfo to avoid Master FE CPU spike - #66791

Open
xy720 wants to merge 1 commit into
apache:branch-4.1from
xy720:fix-mtmv-tvf-gson-cpu-2
Open

branch-4.1: [fix](mtmv) reuse Gson instance in MTMVTask.getTvfInfo to avoid Master FE CPU spike#66791
xy720 wants to merge 1 commit into
apache:branch-4.1from
xy720:fix-mtmv-tvf-gson-cpu-2

Conversation

@xy720

@xy720 xy720 commented Aug 14, 2026

Copy link
Copy Markdown
Member

What problem does this PR solve?

Related PR: #66792

防止在集群有大量物化视图刷新任务的场景下,tasks('type'='mv') TVF 调用 将 Master Cpu 打满:
复用Gson对象可以防止getAdapter的重复调用

200个刷新任务(包括pending)+ 30s 一次的tasks('type'='mv') TVF 调用,32cFE效果就可能达到如下

Clipboard_Screenshot_1786726026 Clipboard_Screenshot_1786727546

Problem Summary:

Release note

None

Check List (For Author)

  • Test

    • Regression test
    • Unit Test
    • Manual test (add detailed scripts or steps below)
    • No need to test or manual test. Explain why:
      • This is a refactor/code format and no logic has been changed.
      • Previous test can cover this change.
      • No code files have been changed.
      • Other reason
  • Behavior changed:

    • No.
    • Yes.
  • Does this need documentation?

    • No.
    • Yes.

Check List (For Reviewer who merge this PR)

  • Confirm the release note
  • Confirm test cases
  • Confirm document
  • Add branch pick label

@xy720
xy720 requested a review from yiguolei as a code owner August 14, 2026 16:48
@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?

@xy720

xy720 commented Aug 14, 2026

Copy link
Copy Markdown
Member Author

run buildall

@yiguolei

Copy link
Copy Markdown
Contributor

@xy720 a PR to master branch first and then pick to 4.1 branch?

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