Skip to content

[BugFix] fix mem leak when caching mv plan context (backport #72300) (backport #72389)#73091

Merged
wanpengfei-git merged 1 commit into
branch-3.5-ccfrom
mergify/bp/branch-3.5-cc/pr-72389
May 12, 2026
Merged

[BugFix] fix mem leak when caching mv plan context (backport #72300) (backport #72389)#73091
wanpengfei-git merged 1 commit into
branch-3.5-ccfrom
mergify/bp/branch-3.5-cc/pr-72389

Conversation

@mergify

@mergify mergify Bot commented May 11, 2026

Copy link
Copy Markdown
Contributor

Why I'm doing:

There are lots of LakeTablet object on FOLLOWER after frequently drop&create same materialized view.
And objects can't be releazed after fe transfers to LEADER.

 num     #instances         #bytes  class name (module)
-------------------------------------------------------
   1:      24469095     1080226352  [B (java.base@17.0.2)
   2:      13197226     1055778080  com.starrocks.lake.LakeTablet

What I'm doing:

Removed dropped materialized view object from pending cache and double check materialized view still exists before be added to context cache.

Fixes #issue

What type of PR is this:

  • BugFix
  • Feature
  • Enhancement
  • Refactor
  • UT
  • Doc
  • Tool

Does this PR entail a change in behavior?

  • Yes, this PR will result in a change in behavior.
  • No, this PR will not result in a change in behavior.

Checklist:

  • I have added test cases for my bug fix or my new feature
  • This pr needs user documentation (for new or modified features or behaviors)
    • I have added documentation for my new feature or new function
    • This pr needs auto generate documentation
  • This is a backport pr

Bugfix cherry-pick branch check:

  • I have checked the version labels which the pr will be auto-backported to the target branch
    • 4.1
    • 4.0
    • 3.5
    • 3.4

This is an automatic backport of pull request #72300 done by [Mergify](https://mergify.com).
This is an automatic backport of pull request #72389 done by [Mergify](https://mergify.com).

…72389)

Signed-off-by: Kevin Cai <kevin.cai@celerdata.com>
Co-authored-by: kaijianding <kaijian.ding@gmail.com>
Co-authored-by: Kevin Cai <kevin.cai@celerdata.com>
(cherry picked from commit 3e5fde1)
@wanpengfei-git
wanpengfei-git merged commit c936ec2 into branch-3.5-cc May 12, 2026
36 checks passed
@wanpengfei-git
wanpengfei-git deleted the mergify/bp/branch-3.5-cc/pr-72389 branch May 12, 2026 06:23
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