Skip to content

branch-4.0:[fix](storage) fix IOContext Use-After-Free (#59947)#62240

Merged
yiguolei merged 3 commits intoapache:branch-4.0from
freemandealer:pick-branch-4.0-pr-59947-20260408-193616
Apr 24, 2026
Merged

branch-4.0:[fix](storage) fix IOContext Use-After-Free (#59947)#62240
yiguolei merged 3 commits intoapache:branch-4.0from
freemandealer:pick-branch-4.0-pr-59947-20260408-193616

Conversation

@freemandealer
Copy link
Copy Markdown
Contributor

Backport of #59947 to branch-4.0.

Original PR: #59947

No compile/test run for this pick.

@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?

@freemandealer
Copy link
Copy Markdown
Contributor Author

run buildall

1 similar comment
@freemandealer
Copy link
Copy Markdown
Contributor Author

run buildall

use shared_ptr instead of raw pointer to manage lifespan
of ioctx in storage layer.

Signed-off-by: zhengyu <zhangzhengyu@selectdb.com>
(cherry picked from commit b6e8f69)
Signed-off-by: zhengyu <zhangzhengyu@selectdb.com>
@freemandealer freemandealer force-pushed the pick-branch-4.0-pr-59947-20260408-193616 branch from 92019e3 to 1d16a91 Compare April 22, 2026 18:52
@freemandealer
Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen
Copy link
Copy Markdown
Contributor

BE Regression && UT Coverage Report

Increment line coverage 64.47% (98/152) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 69.79% (24842/35593)
Line Coverage 52.41% (259787/495644)
Region Coverage 50.01% (214815/429511)
Branch Coverage 51.21% (92126/179904)

@freemandealer
Copy link
Copy Markdown
Contributor Author

run cloud_p0

@hello-stephen
Copy link
Copy Markdown
Contributor

BE Regression && UT Coverage Report

Increment line coverage 64.47% (98/152) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 69.79% (24842/35593)
Line Coverage 52.41% (259787/495644)
Region Coverage 50.01% (214815/429511)
Branch Coverage 51.21% (92126/179904)

@github-actions github-actions Bot added the approved Indicates a PR has been approved by one committer. label Apr 24, 2026
@github-actions
Copy link
Copy Markdown
Contributor

PR approved by at least one committer and no changes requested.

@github-actions
Copy link
Copy Markdown
Contributor

PR approved by anyone and no changes requested.

@yiguolei yiguolei merged commit 4a58efd into apache:branch-4.0 Apr 24, 2026
27 of 31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants