Skip to content

Conversation

@github-actions
Copy link
Contributor

Cherry-picked from #57436

…perations (#57436)

### What problem does this PR solve?
close: #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
@github-actions github-actions bot requested a review from yiguolei as a code owner October 31, 2025 12:10
@Thearas
Copy link
Contributor

Thearas commented Oct 31, 2025

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 Oct 31, 2025
@Thearas
Copy link
Contributor

Thearas commented Oct 31, 2025

run buildall

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Dec 1, 2025
@github-actions
Copy link
Contributor Author

github-actions bot commented Dec 1, 2025

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

@github-actions
Copy link
Contributor Author

github-actions bot commented Dec 1, 2025

PR approved by anyone and no changes requested.

@yiguolei yiguolei closed this Jan 12, 2026
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.

5 participants