[fix](connection)Fixes session-related data is not cleared when the connection is disconnected due to timeout.#55008
Merged
morrySnow merged 8 commits intoapache:masterfrom Aug 27, 2025
Merged
Conversation
Contributor
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
Contributor
Author
|
run buildall |
Contributor
Author
|
run buildall |
1 similar comment
Contributor
Author
|
run buildall |
TPC-H: Total hot run time: 34712 ms |
TPC-DS: Total hot run time: 184659 ms |
ClickBench: Total hot run time: 32.76 s |
Contributor
Author
|
run buildall |
TPC-H: Total hot run time: 33846 ms |
TPC-DS: Total hot run time: 185140 ms |
ClickBench: Total hot run time: 32.04 s |
Contributor
FE UT Coverage ReportIncrement line coverage |
Contributor
Author
|
run p0 |
Contributor
Author
|
run cloud_p0 |
Contributor
Author
|
run buildall |
Contributor
FE UT Coverage ReportIncrement line coverage |
Contributor
Author
|
run buildall |
Contributor
FE UT Coverage ReportIncrement line coverage |
Contributor
Author
|
run buildall |
TPC-H: Total hot run time: 33846 ms |
TPC-DS: Total hot run time: 184776 ms |
Contributor
Author
|
run feut |
ClickBench: Total hot run time: 32.29 s |
Contributor
Author
|
run buildall |
Contributor
FE UT Coverage ReportIncrement line coverage |
TPC-H: Total hot run time: 33870 ms |
TPC-DS: Total hot run time: 184476 ms |
ClickBench: Total hot run time: 32.51 s |
hello-stephen
approved these changes
Aug 27, 2025
Contributor
|
PR approved by at least one committer and no changes requested. |
Contributor
|
PR approved by anyone and no changes requested. |
morrySnow
approved these changes
Aug 27, 2025
zddr
added a commit
to zddr/incubator-doris
that referenced
this pull request
Aug 28, 2025
…onnection is disconnected due to timeout. (apache#55008) ### What problem does this PR solve? bug: 1. create temporary table c(id int) properties("replication_num" = "1"); 2. set wait_timeout=5; 3. When `show data`, can always see the temporary table Additionally, in this scenario, the aliveSessionSet also cannot be properly cleared. fix: When the connection is lost, don't just call closeChannel—call cleanup instead. # Conflicts: # fe/fe-core/src/main/java/org/apache/doris/qe/ConnectContext.java
16 tasks
924060929
pushed a commit
that referenced
this pull request
Sep 10, 2025
…led (#55809) kill connection should not call `threadLocalInfo.remove();`,it will make current thread `getConnection` is null The current historical legacy issue: after killing the connection, it is not possible to execute threadLocalInfo. remove() on the corresponding thread; Resulting in more memory usage Related PR: #55008
morrySnow
pushed a commit
that referenced
this pull request
Sep 11, 2025
Closed
yiguolei
pushed a commit
to yiguolei/incubator-doris
that referenced
this pull request
Dec 19, 2025
…led (apache#55809) kill connection should not call `threadLocalInfo.remove();`,it will make current thread `getConnection` is null The current historical legacy issue: after killing the connection, it is not possible to execute threadLocalInfo. remove() on the corresponding thread; Resulting in more memory usage Related PR: apache#55008 # Conflicts: # fe/fe-core/src/main/java/org/apache/doris/qe/ConnectContext.java # fe/fe-core/src/main/java/org/apache/doris/service/arrowflight/sessions/FlightSqlConnectContext.java
yiguolei
pushed a commit
to yiguolei/incubator-doris
that referenced
this pull request
Dec 19, 2025
…led (apache#55809) kill connection should not call `threadLocalInfo.remove();`,it will make current thread `getConnection` is null The current historical legacy issue: after killing the connection, it is not possible to execute threadLocalInfo. remove() on the corresponding thread; Resulting in more memory usage Related PR: apache#55008 # Conflicts: # fe/fe-core/src/main/java/org/apache/doris/qe/ConnectContext.java # fe/fe-core/src/main/java/org/apache/doris/service/arrowflight/sessions/FlightSqlConnectContext.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What problem does this PR solve?
bug:
show data, can always see the temporary tableAdditionally, in this scenario, the aliveSessionSet also cannot be properly cleared.
fix:
When the connection is lost, don't just call closeChannel—call cleanup instead.
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)