Skip to content

[Fix](load) Fix the channel leak when close wait has been cancelled #38031#38125

Merged
yiguolei merged 2 commits intoapache:branch-2.1from
liaoxin01:pick_38031_to_origin_branch-2.1
Jul 19, 2024
Merged

[Fix](load) Fix the channel leak when close wait has been cancelled #38031#38125
yiguolei merged 2 commits intoapache:branch-2.1from
liaoxin01:pick_38031_to_origin_branch-2.1

Conversation

@liaoxin01
Copy link
Copy Markdown
Contributor

cherry pick from #38031

…pache#38031)

When the close_wait is called, the NodeChannel has already been marked
as cancelled, but close_wait will set _is_closed to true. When it
actually sends a cancel request to the downstream LoadChannel, it finds
that _is_closed has already been set to true, so it will not send an RPC
request, causing a LoadChannel leak.
@liaoxin01
Copy link
Copy Markdown
Contributor Author

run buildall

@doris-robot
Copy link
Copy Markdown

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@github-actions
Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@liaoxin01
Copy link
Copy Markdown
Contributor Author

run buildall

@github-actions
Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@doris-robot
Copy link
Copy Markdown

TeamCity be ut coverage result:
Function Coverage: 36.45% (9238/25341)
Line Coverage: 27.99% (75521/269785)
Region Coverage: 26.81% (38825/144799)
Branch Coverage: 23.56% (19718/83684)
Coverage Report: http://coverage.selectdb-in.cc/coverage/fbd30b78cda2b46b6751617e51806e459fc8af22_fbd30b78cda2b46b6751617e51806e459fc8af22/report/index.html

@yiguolei yiguolei merged commit ffc0d68 into apache:branch-2.1 Jul 19, 2024
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.

3 participants