You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "HonestManXin (via GitHub)" <gi...@apache.org> on 2026/04/21 09:40:50 UTC
[PR] [fix](fe) Fix ReadListener leak on rejected worker task [doris]
HonestManXin opened a new pull request, #62679:
URL: https://github.com/apache/doris/pull/62679
ReadListener does not handle RejectedExecutionException, which may cause the Client to hang when concurrency is extremely high. AcceptListener has already performed similar handling.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](fe) Fix ReadListener leak on rejected worker task [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #62679:
URL: https://github.com/apache/doris/pull/62679#issuecomment-4290288657
# FE UT Coverage Report
Increment line coverage ` 23.53% (4/17)` :tada:
[Increment coverage report](http://coverage.selectdb-in.cc/coverage/62679_fda93d1849956ca2874b3f5a28a3c526b8661699/fe_increment_report/index.html)
[Complete coverage report](http://coverage.selectdb-in.cc/coverage/62679_fda93d1849956ca2874b3f5a28a3c526b8661699/fe_report/index.html)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](fe) Fix ReadListener leak on rejected worker task [doris]
Posted by "morrySnow (via GitHub)" <gi...@apache.org>.
morrySnow merged PR #62679:
URL: https://github.com/apache/doris/pull/62679
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](fe) Fix ReadListener leak on rejected worker task [doris]
Posted by "HonestManXin (via GitHub)" <gi...@apache.org>.
HonestManXin commented on PR #62679:
URL: https://github.com/apache/doris/pull/62679#issuecomment-4293614414
run p0
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](fe) Fix ReadListener leak on rejected worker task [doris]
Posted by "HonestManXin (via GitHub)" <gi...@apache.org>.
HonestManXin commented on PR #62679:
URL: https://github.com/apache/doris/pull/62679#issuecomment-4293189035
run buildall
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](fe) Fix ReadListener leak on rejected worker task [doris]
Posted by "HonestManXin (via GitHub)" <gi...@apache.org>.
HonestManXin commented on PR #62679:
URL: https://github.com/apache/doris/pull/62679#issuecomment-4310918205
/review
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](fe) Fix ReadListener leak on rejected worker task [doris]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on code in PR #62679:
URL: https://github.com/apache/doris/pull/62679#discussion_r3128349167
##########
fe/fe-core/src/test/java/org/apache/doris/mysql/ConnectionExceedTest.java:
##########
@@ -90,6 +97,32 @@ public void testHandleConnectionExceed() throws Exception {
}
}
+ @Test
+ public void testHandleReadEventRejectedExecution() throws Exception {
+ try (MockedStatic<XnioIoThread> mockedIoThread = Mockito.mockStatic(XnioIoThread.class)) {
+ ConnectContext context = Mockito.mock(ConnectContext.class);
+ QueryState queryState = Mockito.mock(QueryState.class);
+ ConnectProcessor processor = Mockito.mock(ConnectProcessor.class);
+ ConduitStreamSourceChannel channel = Mockito.mock(ConduitStreamSourceChannel.class);
+ XnioWorker worker = Mockito.mock(XnioWorker.class);
+
+ Mockito.when(context.getState()).thenReturn(queryState);
+ Mockito.when(channel.getWorker()).thenReturn(worker);
+ Mockito.doThrow(new RejectedExecutionException("queue full"))
+ .when(worker).execute(Mockito.any(Runnable.class));
+
+ ReadListener listener = new ReadListener(context, processor);
+ listener.handleEvent(channel);
Review Comment:
These lines do not actually verify order. Each `Mockito.inOrder(context)` call creates a new `InOrder` verifier, so the assertions only prove that the four methods were each invoked at some point. If `setKilled()` moved before `setThreadLocalInfo()` again, this test would still pass. Since the regression here is about lifecycle ordering, please create one shared `InOrder` and verify all four calls through it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](fe) Fix ReadListener leak on rejected worker task [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #62679:
URL: https://github.com/apache/doris/pull/62679#issuecomment-4287496464
Thank you for your contribution to Apache Doris.
Don't know what should be done next? See [How to process your PR](https://cwiki.apache.org/confluence/display/DORIS/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?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](fe) Fix ReadListener leak on rejected worker task [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #62679:
URL: https://github.com/apache/doris/pull/62679#issuecomment-4311632101
# FE Regression Coverage Report
Increment line coverage ` 4.91% (13/265)` :tada:
[Increment coverage report](http://coverage.selectdb-in.cc/coverage/62679_7c279c6df204c9c9079c0d3aa343acdc1ca7711f_merge_fe/increment_report/index.html)
[Complete coverage report](http://coverage.selectdb-in.cc/coverage/62679_7c279c6df204c9c9079c0d3aa343acdc1ca7711f_merge_fe/report/index.html)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](fe) Fix ReadListener leak on rejected worker task [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #62679:
URL: https://github.com/apache/doris/pull/62679#issuecomment-4293428869
# FE UT Coverage Report
Increment line coverage ` 18.75% (3/16)` :tada:
[Increment coverage report](http://coverage.selectdb-in.cc/coverage/62679_9d780728619e8706cd7ddd1fb0edd0ee55307da4/fe_increment_report/index.html)
[Complete coverage report](http://coverage.selectdb-in.cc/coverage/62679_9d780728619e8706cd7ddd1fb0edd0ee55307da4/fe_report/index.html)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](fe) Fix ReadListener leak on rejected worker task [doris]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on code in PR #62679:
URL: https://github.com/apache/doris/pull/62679#discussion_r3117252002
##########
fe/fe-core/src/main/java/org/apache/doris/mysql/ReadListener.java:
##########
@@ -46,23 +49,37 @@ public void handleEvent(ConduitStreamSourceChannel channel) {
XnioIoThread.requireCurrentThread();
ctx.suspendAcceptQuery();
// start async query handle in task thread.
- channel.getWorker().execute(() -> {
- ctx.setThreadLocalInfo();
- try {
- connectProcessor.processOnce();
- if (!ctx.isKilled()) {
- ctx.resumeAcceptQuery();
- } else {
- ctx.stopAcceptQuery();
+ try {
+ channel.getWorker().execute(() -> {
+ ctx.setThreadLocalInfo();
+ try {
+ connectProcessor.processOnce();
+ if (!ctx.isKilled()) {
+ ctx.resumeAcceptQuery();
+ } else {
+ ctx.stopAcceptQuery();
+ ctx.cleanup();
+ }
+ } catch (Throwable e) {
+ LOG.warn("Exception happened in one session(" + ctx + ").", e);
+ ctx.setKilled();
ctx.cleanup();
+ } finally {
+ ConnectContext.remove();
}
- } catch (Throwable e) {
- LOG.warn("Exception happened in one session(" + ctx + ").", e);
+ });
+ } catch (RejectedExecutionException e) {
+ LOG.warn("Failed to submit query task for one session({}).", ctx, e);
+ ctx.getState().setError(ErrorCode.ERR_UNKNOWN_ERROR,
+ "Too many concurrent requests, please retry later");
Review Comment:
`MysqlProto.sendResponsePacket()` is not safe here. This branch runs before `MysqlConnectProcessor.processOnce()` does `channel.setSequenceId(0)` and `fetchOnePacket()`, so the response reuses whatever `MysqlChannel.sequenceId` was left by the previous command. For a normal one-packet command that is typically `2` after the last response, and for a multi-packet request we cannot know the correct reply sequence at all because the request was never consumed. That means this overload path can still send a protocol-invalid ERR packet. The new unit test mocks `MysqlProto.sendResponsePacket()`, so it will not catch this.
Safer options are to close the channel directly, or to restructure this path so the request is consumed and the sequence is initialized through the normal command-processing flow before replying.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](fe) Fix ReadListener leak on rejected worker task [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #62679:
URL: https://github.com/apache/doris/pull/62679#issuecomment-4294165948
# FE Regression Coverage Report
Increment line coverage ` 3.23% (13/402)` :tada:
[Increment coverage report](http://coverage.selectdb-in.cc/coverage/62679_9d780728619e8706cd7ddd1fb0edd0ee55307da4_merge_fe/increment_report/index.html)
[Complete coverage report](http://coverage.selectdb-in.cc/coverage/62679_9d780728619e8706cd7ddd1fb0edd0ee55307da4_merge_fe/report/index.html)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](fe) Fix ReadListener leak on rejected worker task [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #62679:
URL: https://github.com/apache/doris/pull/62679#issuecomment-4293617684
# FE Regression Coverage Report
Increment line coverage ` 56.52% (13/23)` :tada:
[Increment coverage report](http://coverage.selectdb-in.cc/coverage/62679_9d780728619e8706cd7ddd1fb0edd0ee55307da4_merge_fe/increment_report/index.html)
[Complete coverage report](http://coverage.selectdb-in.cc/coverage/62679_9d780728619e8706cd7ddd1fb0edd0ee55307da4_merge_fe/report/index.html)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](fe) Fix ReadListener leak on rejected worker task [doris]
Posted by "924060929 (via GitHub)" <gi...@apache.org>.
924060929 commented on PR #62679:
URL: https://github.com/apache/doris/pull/62679#issuecomment-4301711191
/review Since the cleaning here is to forcibly close the channel, there is no problem even if no packets are consumed? The client should be able to see that the connection has been killed, but I'm not sure if they will receive a specific error message, such as' high load '?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](fe) Fix ReadListener leak on rejected worker task [doris]
Posted by "HonestManXin (via GitHub)" <gi...@apache.org>.
HonestManXin commented on PR #62679:
URL: https://github.com/apache/doris/pull/62679#issuecomment-4289666520
/review
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](fe) Fix ReadListener leak on rejected worker task [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #62679:
URL: https://github.com/apache/doris/pull/62679#issuecomment-4288733199
# FE Regression Coverage Report
Increment line coverage ` 68.42% (13/19)` :tada:
[Increment coverage report](http://coverage.selectdb-in.cc/coverage/62679_678dfd38198b5fa3bad09c2fb2849e16407a91c0_merge_fe/increment_report/index.html)
[Complete coverage report](http://coverage.selectdb-in.cc/coverage/62679_678dfd38198b5fa3bad09c2fb2849e16407a91c0_merge_fe/report/index.html)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](fe) Fix ReadListener leak on rejected worker task [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #62679:
URL: https://github.com/apache/doris/pull/62679#issuecomment-4294186557
# FE Regression Coverage Report
Increment line coverage ` 3.13% (13/415)` :tada:
[Increment coverage report](http://coverage.selectdb-in.cc/coverage/62679_9d780728619e8706cd7ddd1fb0edd0ee55307da4_merge_fe/increment_report/index.html)
[Complete coverage report](http://coverage.selectdb-in.cc/coverage/62679_9d780728619e8706cd7ddd1fb0edd0ee55307da4_merge_fe/report/index.html)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](fe) Fix ReadListener leak on rejected worker task [doris]
Posted by "HonestManXin (via GitHub)" <gi...@apache.org>.
HonestManXin commented on PR #62679:
URL: https://github.com/apache/doris/pull/62679#issuecomment-4293615003
run external
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](fe) Fix ReadListener leak on rejected worker task [doris]
Posted by "HonestManXin (via GitHub)" <gi...@apache.org>.
HonestManXin commented on PR #62679:
URL: https://github.com/apache/doris/pull/62679#issuecomment-4310918791
run buildall
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](fe) Fix ReadListener leak on rejected worker task [doris]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on code in PR #62679:
URL: https://github.com/apache/doris/pull/62679#discussion_r3118697352
##########
fe/fe-core/src/main/java/org/apache/doris/mysql/ReadListener.java:
##########
@@ -46,23 +48,29 @@ public void handleEvent(ConduitStreamSourceChannel channel) {
XnioIoThread.requireCurrentThread();
ctx.suspendAcceptQuery();
// start async query handle in task thread.
- channel.getWorker().execute(() -> {
- ctx.setThreadLocalInfo();
- try {
- connectProcessor.processOnce();
- if (!ctx.isKilled()) {
- ctx.resumeAcceptQuery();
- } else {
- ctx.stopAcceptQuery();
+ try {
+ channel.getWorker().execute(() -> {
+ ctx.setThreadLocalInfo();
+ try {
+ connectProcessor.processOnce();
+ if (!ctx.isKilled()) {
+ ctx.resumeAcceptQuery();
+ } else {
+ ctx.stopAcceptQuery();
+ ctx.cleanup();
+ }
+ } catch (Throwable e) {
+ LOG.warn("Exception happened in one session(" + ctx + ").", e);
+ ctx.setKilled();
ctx.cleanup();
+ } finally {
+ ConnectContext.remove();
}
- } catch (Throwable e) {
- LOG.warn("Exception happened in one session(" + ctx + ").", e);
- ctx.setKilled();
- ctx.cleanup();
- } finally {
- ConnectContext.remove();
- }
- });
+ });
+ } catch (RejectedExecutionException e) {
+ LOG.warn("Failed to submit query task for one session({}).", ctx, e);
+ ctx.setKilled();
Review Comment:
This branch skips the normal `ctx.setThreadLocalInfo()` / `ConnectContext.remove()` lifecycle, but `cleanup()` can still tear down transaction state through the connection close listener. `ConnectPoolMgr.unregisterConnection()` calls `ctx.closeTxn()`, and the observer rollback path in `TransactionEntry.abortTransaction()` builds `MasterOpExecutor` / `MasterTxnExecutor` from `ConnectContext.get()`. For a session that already owns a transaction, a rejected worker task here can therefore fail to abort the txn and leak server-side transaction state. The mocked test will not catch that because it never exercises a real registered connection / txn cleanup path.
##########
fe/fe-core/src/main/java/org/apache/doris/mysql/ReadListener.java:
##########
@@ -46,23 +48,29 @@ public void handleEvent(ConduitStreamSourceChannel channel) {
XnioIoThread.requireCurrentThread();
ctx.suspendAcceptQuery();
// start async query handle in task thread.
- channel.getWorker().execute(() -> {
- ctx.setThreadLocalInfo();
- try {
- connectProcessor.processOnce();
- if (!ctx.isKilled()) {
- ctx.resumeAcceptQuery();
- } else {
- ctx.stopAcceptQuery();
+ try {
+ channel.getWorker().execute(() -> {
+ ctx.setThreadLocalInfo();
+ try {
+ connectProcessor.processOnce();
+ if (!ctx.isKilled()) {
+ ctx.resumeAcceptQuery();
+ } else {
+ ctx.stopAcceptQuery();
+ ctx.cleanup();
+ }
+ } catch (Throwable e) {
+ LOG.warn("Exception happened in one session(" + ctx + ").", e);
+ ctx.setKilled();
ctx.cleanup();
+ } finally {
+ ConnectContext.remove();
}
- } catch (Throwable e) {
- LOG.warn("Exception happened in one session(" + ctx + ").", e);
- ctx.setKilled();
- ctx.cleanup();
- } finally {
- ConnectContext.remove();
- }
- });
+ });
+ } catch (RejectedExecutionException e) {
+ LOG.warn("Failed to submit query task for one session({}).", ctx, e);
+ ctx.setKilled();
Review Comment:
`handleEvent()` is still running on the XNIO I/O thread here. Calling full `ctx.cleanup()` from this rejection path moves heavyweight session teardown back onto the event loop: `cleanup()` may drop temp tables directly or forward to master, and connection close can synchronously drive transaction abort. Under the same overload condition that causes `RejectedExecutionException`, this can stall the I/O thread and hurt unrelated connections.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](fe) Fix ReadListener leak on rejected worker task [doris]
Posted by "HonestManXin (via GitHub)" <gi...@apache.org>.
HonestManXin commented on PR #62679:
URL: https://github.com/apache/doris/pull/62679#issuecomment-4289683118
run buildall
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](fe) Fix ReadListener leak on rejected worker task [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #62679:
URL: https://github.com/apache/doris/pull/62679#issuecomment-4290744937
# FE Regression Coverage Report
Increment line coverage ` 76.47% (13/17)` :tada:
[Increment coverage report](http://coverage.selectdb-in.cc/coverage/62679_fda93d1849956ca2874b3f5a28a3c526b8661699_merge_fe/increment_report/index.html)
[Complete coverage report](http://coverage.selectdb-in.cc/coverage/62679_fda93d1849956ca2874b3f5a28a3c526b8661699_merge_fe/report/index.html)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](fe) Fix ReadListener leak on rejected worker task [doris]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #62679:
URL: https://github.com/apache/doris/pull/62679#issuecomment-4301942495
PR approved by at least one committer and no changes requested.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](fe) Fix ReadListener leak on rejected worker task [doris]
Posted by "HonestManXin (via GitHub)" <gi...@apache.org>.
HonestManXin commented on PR #62679:
URL: https://github.com/apache/doris/pull/62679#issuecomment-4287516105
run buildall
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](fe) Fix ReadListener leak on rejected worker task [doris]
Posted by "HonestManXin (via GitHub)" <gi...@apache.org>.
HonestManXin commented on PR #62679:
URL: https://github.com/apache/doris/pull/62679#issuecomment-4288271923
/review
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](fe) Fix ReadListener leak on rejected worker task [doris]
Posted by "924060929 (via GitHub)" <gi...@apache.org>.
924060929 commented on PR #62679:
URL: https://github.com/apache/doris/pull/62679#issuecomment-4301516743
/revew Since the cleaning here is to forcibly close the channel, there is no problem even if no packets are consumed? The client should be able to see that the connection has been killed, but I'm not sure if they will receive a specific error message, such as' high load '?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org