Skip to content

branch-4.0: [ut](filecache) fix bvar::Window metrics use-after free #59958#60017

Merged
yiguolei merged 1 commit intobranch-4.0from
auto-pick-59958-branch-4.0
Jan 19, 2026
Merged

branch-4.0: [ut](filecache) fix bvar::Window metrics use-after free #59958#60017
yiguolei merged 1 commit intobranch-4.0from
auto-pick-59958-branch-4.0

Conversation

@github-actions
Copy link
Contributor

Cherry-picked from #59958

Disable creation of these Window metrics for UT (keep only Adder/Status)
to prevent sampling threads from being involved. Otherwise,
BlockFileCache class can be destroyed before sampling threads join make
it Use-After-Free.
@github-actions github-actions bot requested a review from yiguolei as a code owner January 19, 2026 06:41
@Thearas
Copy link
Contributor

Thearas commented Jan 19, 2026

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 Jan 19, 2026
@Thearas
Copy link
Contributor

Thearas commented Jan 19, 2026

run buildall

@doris-robot
Copy link

BE UT Coverage Report

Increment line coverage 100.00% (8/8) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 52.72% (18880/35810)
Line Coverage 35.82% (175185/489102)
Region Coverage 32.47% (135561/417521)
Branch Coverage 33.31% (58748/176347)

@yiguolei
Copy link
Contributor

skip buildall

@yiguolei yiguolei merged commit 6feb9cb into branch-4.0 Jan 19, 2026
27 of 29 checks passed
@github-actions github-actions bot deleted the auto-pick-59958-branch-4.0 branch January 19, 2026 07:57
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.

5 participants