Skip to content

Conversation

@suxiaogang223
Copy link
Contributor

bp: #57436

…perations (apache#57436)

### What problem does this PR solve?
close: apache#56328

Problem Summary:
The current close() method in Scanner class and its derived classes has
thread safety issues in multi-threaded environments. Multiple threads
may call close() simultaneously, leading to:
1. Race conditions: Multiple threads may check _is_closed status and
execute close operations simultaneously
2. Double close: May cause resources to be released or cleaned up
multiple times
3. Potential memory leaks or crash risks
@suxiaogang223
Copy link
Contributor Author

run buildall

@hello-stephen
Copy link
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?

@hello-stephen
Copy link
Contributor

BE UT Coverage Report

Increment line coverage 46.15% (6/13) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 53.28% (18675/35050)
Line Coverage 39.10% (173023/442542)
Region Coverage 33.77% (133646/395751)
Branch Coverage 34.76% (57829/166343)

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.

2 participants