Skip to content

Conversation

@morningman
Copy link
Contributor

@morningman morningman commented Jun 19, 2024

Some time we met error like:

2024-06-15 17:26:16,492 WARN (mysql-nio-pool-206|11598) [ConnectProcessor.handleQueryException():420] Process one query failed because IOException:
java.io.IOException: Write mysql packet failed.[write=646624, needToWrite=2097119]
at org.apache.doris.mysql.MysqlChannel.realNetSend(MysqlChannel.java:407) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.mysql.MysqlChannel.flush(MysqlChannel.java:436) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.mysql.MysqlChannel.writeBuffer(MysqlChannel.java:467) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.mysql.MysqlChannel.sendOnePacket(MysqlChannel.java:500) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.qe.StmtExecutor.sendResult(StmtExecutor.java:1747) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.qe.StmtExecutor.handleQueryStmt(StmtExecutor.java:1674) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.qe.StmtExecutor.handleQueryWithRetry(StmtExecutor.java:779) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.qe.StmtExecutor.executeByNereids(StmtExecutor.java:731) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.qe.StmtExecutor.execute(StmtExecutor.java:533) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.qe.StmtExecutor.execute(StmtExecutor.java:512) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.qe.ConnectProcessor.executeQuery(ConnectProcessor.java:307) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.qe.ConnectProcessor.handleQuery(ConnectProcessor.java:203) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.qe.MysqlConnectProcessor.handleQuery(MysqlConnectProcessor.java:177) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.qe.MysqlConnectProcessor.dispatch(MysqlConnectProcessor.java:205) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.qe.MysqlConnectProcessor.processOnce(MysqlConnectProcessor.java:258) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.mysql.ReadListener.lambda$handleEvent$0(ReadListener.java:52) ~[doris-fe.jar:1.2-SNAPSHOT]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_352-352]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_352-352]
at java.lang.Thread.run(Thread.java:750) ~[?:1.8.0_352-352]

After that, if user call connection.close() in jdbc, it may be blocked.
And we can still see this connection in show processlist.

We should kill this connection because it is already broken.

@doris-robot
Copy link

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.

@morningman morningman changed the title [tmp] kill connection when meeting Write mysql packet failed error [fix](connection) kill connection when meeting Write mysql packet failed error Jun 19, 2024
@morningman
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

TPC-H: Total hot run time: 39707 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit d8da2c72ee070f9ce8477eebc0614fbb2a3c403a, data reload: false

------ Round 1 ----------------------------------
q1	18071	4601	4342	4342
q2	2663	206	200	200
q3	11022	1083	1064	1064
q4	10977	785	851	785
q5	7511	2693	2713	2693
q6	227	139	136	136
q7	963	616	610	610
q8	9320	2075	2094	2075
q9	8805	6403	6508	6403
q10	8903	3730	3723	3723
q11	468	236	229	229
q12	403	234	228	228
q13	17775	2953	2967	2953
q14	268	216	223	216
q15	526	495	481	481
q16	507	375	367	367
q17	951	602	684	602
q18	8179	7390	7358	7358
q19	4965	1446	1392	1392
q20	677	308	327	308
q21	4860	3215	3755	3215
q22	395	337	327	327
Total cold run time: 118436 ms
Total hot run time: 39707 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4407	4252	4252	4252
q2	372	273	270	270
q3	2972	2720	2701	2701
q4	1855	1579	1614	1579
q5	5200	5255	5255	5255
q6	217	129	129	129
q7	2100	1700	1716	1700
q8	3194	3329	3311	3311
q9	8394	8332	8279	8279
q10	3878	3620	3681	3620
q11	559	490	486	486
q12	769	614	599	599
q13	16416	2947	2975	2947
q14	293	260	260	260
q15	527	470	483	470
q16	464	415	416	415
q17	1749	1500	1437	1437
q18	7624	7467	7272	7272
q19	2220	1586	1657	1586
q20	1959	1781	1780	1780
q21	4743	4780	4716	4716
q22	595	532	529	529
Total cold run time: 70507 ms
Total hot run time: 53593 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 170636 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit d8da2c72ee070f9ce8477eebc0614fbb2a3c403a, data reload: false

query1	924	374	366	366
query2	6454	2497	2176	2176
query3	6646	204	207	204
query4	19762	17398	17325	17325
query5	4171	489	449	449
query6	249	152	164	152
query7	4585	290	285	285
query8	336	280	284	280
query9	8558	2442	2431	2431
query10	597	295	301	295
query11	10597	10136	10072	10072
query12	138	88	82	82
query13	1641	390	362	362
query14	10023	7480	6508	6508
query15	216	178	193	178
query16	7819	258	263	258
query17	1918	532	537	532
query18	1811	260	263	260
query19	190	154	152	152
query20	89	84	80	80
query21	207	129	126	126
query22	4426	4253	4119	4119
query23	33531	33007	33023	33007
query24	11842	2746	2835	2746
query25	644	353	353	353
query26	1752	149	154	149
query27	2962	312	314	312
query28	7465	2075	2051	2051
query29	1042	623	597	597
query30	286	148	151	148
query31	954	732	754	732
query32	92	55	55	55
query33	767	344	277	277
query34	897	464	453	453
query35	733	614	596	596
query36	1076	940	931	931
query37	201	67	71	67
query38	2905	2755	2713	2713
query39	834	797	772	772
query40	293	125	127	125
query41	55	51	52	51
query42	115	94	100	94
query43	595	552	540	540
query44	1228	713	732	713
query45	188	172	170	170
query46	1068	729	715	715
query47	1864	1781	1795	1781
query48	368	293	293	293
query49	1181	408	391	391
query50	758	373	379	373
query51	6772	6674	6662	6662
query52	101	95	96	95
query53	356	288	286	286
query54	991	433	444	433
query55	75	71	74	71
query56	286	254	269	254
query57	1159	1047	1064	1047
query58	246	236	267	236
query59	3285	3123	3119	3119
query60	295	263	275	263
query61	101	91	96	91
query62	675	443	468	443
query63	315	288	280	280
query64	9864	2242	1717	1717
query65	3220	3110	3147	3110
query66	1328	342	335	335
query67	15448	14899	15044	14899
query68	4532	527	523	523
query69	440	311	299	299
query70	1164	1113	1072	1072
query71	376	273	269	269
query72	7185	5737	4190	4190
query73	727	322	323	322
query74	6074	5596	5482	5482
query75	3307	2677	2673	2673
query76	2484	1017	936	936
query77	443	287	282	282
query78	10224	9869	9824	9824
query79	2310	508	506	506
query80	1149	458	463	458
query81	575	218	215	215
query82	730	102	108	102
query83	229	172	195	172
query84	238	91	83	83
query85	1993	270	265	265
query86	523	336	309	309
query87	3242	3065	3097	3065
query88	3754	2359	2350	2350
query89	469	379	374	374
query90	1823	191	184	184
query91	125	95	98	95
query92	60	51	50	50
query93	2317	506	496	496
query94	1243	238	185	185
query95	403	313	309	309
query96	592	275	260	260
query97	3192	3044	3082	3044
query98	227	202	199	199
query99	1235	805	827	805
Total cold run time: 274955 ms
Total hot run time: 170636 ms

@doris-robot
Copy link

ClickBench: Total hot run time: 30.91 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit d8da2c72ee070f9ce8477eebc0614fbb2a3c403a, data reload: false

query1	0.04	0.04	0.03
query2	0.08	0.04	0.04
query3	0.23	0.05	0.05
query4	1.68	0.08	0.08
query5	0.52	0.50	0.50
query6	1.16	0.73	0.71
query7	0.02	0.01	0.02
query8	0.05	0.03	0.04
query9	0.54	0.49	0.48
query10	0.54	0.55	0.53
query11	0.15	0.12	0.11
query12	0.15	0.12	0.12
query13	0.60	0.59	0.60
query14	0.78	0.79	0.78
query15	0.84	0.80	0.82
query16	0.35	0.36	0.35
query17	0.94	1.02	0.96
query18	0.21	0.28	0.24
query19	1.79	1.70	1.72
query20	0.02	0.01	0.01
query21	15.41	0.65	0.64
query22	4.13	6.55	2.40
query23	18.31	1.40	1.33
query24	2.10	0.23	0.22
query25	0.15	0.09	0.08
query26	0.28	0.18	0.17
query27	0.09	0.08	0.09
query28	13.25	1.02	0.99
query29	12.58	3.27	3.24
query30	0.26	0.06	0.06
query31	2.87	0.38	0.38
query32	3.31	0.47	0.47
query33	2.87	2.88	2.91
query34	17.31	4.42	4.37
query35	4.58	4.43	4.46
query36	0.65	0.47	0.46
query37	0.17	0.15	0.15
query38	0.15	0.15	0.14
query39	0.04	0.04	0.03
query40	0.17	0.14	0.14
query41	0.10	0.05	0.04
query42	0.06	0.05	0.05
query43	0.04	0.04	0.04
Total cold run time: 109.57 s
Total hot run time: 30.91 s

Copy link
Contributor

@kaka11chen kaka11chen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Jun 20, 2024
@github-actions
Copy link
Contributor

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

@github-actions
Copy link
Contributor

PR approved by anyone and no changes requested.

@morningman
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

TPC-H: Total hot run time: 39593 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 379ef79fb3e59757ff6ad3f8a97469723178ebe7, data reload: false

------ Round 1 ----------------------------------
q1	17619	4361	4265	4265
q2	2026	195	197	195
q3	10459	1116	1095	1095
q4	10181	835	728	728
q5	7493	2665	2607	2607
q6	223	136	133	133
q7	935	602	591	591
q8	9217	2066	2092	2066
q9	9121	6574	6528	6528
q10	9052	3751	3706	3706
q11	456	243	238	238
q12	491	236	229	229
q13	17795	2995	3006	2995
q14	274	222	234	222
q15	515	477	475	475
q16	529	377	370	370
q17	955	698	683	683
q18	7960	7370	7304	7304
q19	2079	1497	1347	1347
q20	647	304	321	304
q21	4994	3183	3202	3183
q22	393	329	336	329
Total cold run time: 113414 ms
Total hot run time: 39593 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4326	4211	4211	4211
q2	390	255	257	255
q3	2985	2728	2751	2728
q4	2012	1735	1704	1704
q5	5536	5621	5540	5540
q6	216	131	128	128
q7	2238	1829	1839	1829
q8	3328	3420	3399	3399
q9	8681	8692	8721	8692
q10	4187	3938	3925	3925
q11	612	512	482	482
q12	770	626	609	609
q13	17060	3152	3178	3152
q14	307	278	281	278
q15	530	484	489	484
q16	507	443	443	443
q17	1802	1521	1483	1483
q18	8091	7965	7763	7763
q19	3737	1674	1593	1593
q20	2094	1887	1892	1887
q21	5093	4988	4941	4941
q22	644	548	582	548
Total cold run time: 75146 ms
Total hot run time: 56074 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 174014 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit 379ef79fb3e59757ff6ad3f8a97469723178ebe7, data reload: false

query1	936	389	368	368
query2	6455	2310	2213	2213
query3	6648	205	206	205
query4	19356	17391	17255	17255
query5	3600	479	452	452
query6	237	156	167	156
query7	4580	293	289	289
query8	311	280	286	280
query9	8528	2427	2428	2427
query10	579	314	319	314
query11	10597	10157	10067	10067
query12	119	88	83	83
query13	1646	356	354	354
query14	10101	7771	6914	6914
query15	243	194	192	192
query16	7754	263	258	258
query17	1933	554	521	521
query18	1963	282	280	280
query19	196	158	155	155
query20	94	82	110	82
query21	207	123	128	123
query22	4429	4052	4119	4052
query23	33804	33839	33904	33839
query24	10658	2921	3026	2921
query25	611	374	356	356
query26	706	154	151	151
query27	2284	324	317	317
query28	6024	2135	2139	2135
query29	858	620	630	620
query30	233	154	153	153
query31	951	830	772	772
query32	86	57	55	55
query33	683	283	273	273
query34	915	478	483	478
query35	770	647	657	647
query36	1152	950	982	950
query37	148	78	77	77
query38	3030	2908	2828	2828
query39	879	828	857	828
query40	208	130	131	130
query41	56	57	65	57
query42	114	103	106	103
query43	595	496	535	496
query44	1059	739	744	739
query45	194	163	171	163
query46	1076	738	734	734
query47	1906	1809	1812	1809
query48	374	299	299	299
query49	850	406	423	406
query50	775	392	387	387
query51	6767	6771	6709	6709
query52	103	94	98	94
query53	359	294	296	294
query54	878	456	449	449
query55	76	76	77	76
query56	300	279	277	277
query57	1127	1037	1066	1037
query58	265	263	241	241
query59	3298	3142	3028	3028
query60	310	300	306	300
query61	160	91	94	91
query62	589	459	448	448
query63	310	281	286	281
query64	8481	2228	1731	1731
query65	3196	3137	3123	3123
query66	705	345	325	325
query67	15447	15133	14937	14937
query68	6162	531	544	531
query69	673	485	406	406
query70	1222	1089	1072	1072
query71	498	274	266	266
query72	7292	5375	5525	5375
query73	794	320	316	316
query74	5881	5605	5504	5504
query75	3998	2666	2664	2664
query76	4387	938	954	938
query77	688	308	297	297
query78	10534	9816	9782	9782
query79	2178	519	528	519
query80	2235	501	449	449
query81	581	221	221	221
query82	765	106	106	106
query83	286	171	170	170
query84	269	90	86	86
query85	1256	311	327	311
query86	453	293	328	293
query87	3337	3148	3148	3148
query88	3662	2335	2325	2325
query89	480	372	368	368
query90	1777	187	183	183
query91	131	102	101	101
query92	59	50	48	48
query93	2464	499	495	495
query94	1018	191	185	185
query95	399	319	306	306
query96	592	262	266	262
query97	3220	3096	3029	3029
query98	219	199	194	194
query99	1247	860	884	860
Total cold run time: 272639 ms
Total hot run time: 174014 ms

@doris-robot
Copy link

ClickBench: Total hot run time: 31.32 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit 379ef79fb3e59757ff6ad3f8a97469723178ebe7, data reload: false

query1	0.04	0.04	0.03
query2	0.08	0.04	0.04
query3	0.23	0.06	0.05
query4	1.68	0.07	0.07
query5	0.49	0.50	0.49
query6	1.13	0.75	0.73
query7	0.02	0.02	0.01
query8	0.05	0.04	0.04
query9	0.54	0.50	0.49
query10	0.53	0.53	0.54
query11	0.15	0.11	0.11
query12	0.14	0.12	0.12
query13	0.60	0.59	0.60
query14	0.77	0.78	0.78
query15	0.81	0.82	0.79
query16	0.36	0.35	0.37
query17	1.04	1.02	1.04
query18	0.23	0.25	0.23
query19	1.75	1.80	1.82
query20	0.01	0.01	0.01
query21	15.41	0.66	0.65
query22	4.61	6.01	2.57
query23	18.30	1.43	1.26
query24	2.14	0.24	0.25
query25	0.15	0.09	0.09
query26	0.27	0.18	0.17
query27	0.08	0.08	0.08
query28	13.14	1.01	1.01
query29	12.59	3.26	3.25
query30	0.26	0.06	0.05
query31	2.86	0.39	0.38
query32	3.28	0.48	0.46
query33	2.88	2.92	2.83
query34	17.06	4.47	4.44
query35	4.49	4.51	4.54
query36	0.65	0.45	0.46
query37	0.19	0.16	0.15
query38	0.15	0.16	0.15
query39	0.05	0.03	0.04
query40	0.17	0.15	0.14
query41	0.10	0.05	0.05
query42	0.05	0.04	0.05
query43	0.05	0.04	0.04
Total cold run time: 109.58 s
Total hot run time: 31.32 s

@morningman morningman merged commit 147a621 into apache:master Jun 21, 2024
iszhangpch pushed a commit to iszhangpch/doris-p that referenced this pull request Jun 21, 2024
…led error (apache#36559)

Some time we met error like:
```
2024-06-15 17:26:16,492 WARN (mysql-nio-pool-206|11598) [ConnectProcessor.handleQueryException():420] Process one query failed because IOException:
java.io.IOException: Write mysql packet failed.[write=646624, needToWrite=2097119]
at org.apache.doris.mysql.MysqlChannel.realNetSend(MysqlChannel.java:407) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.mysql.MysqlChannel.flush(MysqlChannel.java:436) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.mysql.MysqlChannel.writeBuffer(MysqlChannel.java:467) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.mysql.MysqlChannel.sendOnePacket(MysqlChannel.java:500) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.qe.StmtExecutor.sendResult(StmtExecutor.java:1747) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.qe.StmtExecutor.handleQueryStmt(StmtExecutor.java:1674) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.qe.StmtExecutor.handleQueryWithRetry(StmtExecutor.java:779) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.qe.StmtExecutor.executeByNereids(StmtExecutor.java:731) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.qe.StmtExecutor.execute(StmtExecutor.java:533) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.qe.StmtExecutor.execute(StmtExecutor.java:512) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.qe.ConnectProcessor.executeQuery(ConnectProcessor.java:307) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.qe.ConnectProcessor.handleQuery(ConnectProcessor.java:203) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.qe.MysqlConnectProcessor.handleQuery(MysqlConnectProcessor.java:177) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.qe.MysqlConnectProcessor.dispatch(MysqlConnectProcessor.java:205) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.qe.MysqlConnectProcessor.processOnce(MysqlConnectProcessor.java:258) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.mysql.ReadListener.lambda$handleEvent$0(ReadListener.java:52) ~[doris-fe.jar:1.2-SNAPSHOT]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_352-352]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_352-352]
at java.lang.Thread.run(Thread.java:750) ~[?:1.8.0_352-352]
```

After that, if user call `connection.close()` in jdbc, it may be
blocked.
And we can still see this connection in `show processlist`.

We should kill this connection because it is already broken.
dataroaring pushed a commit that referenced this pull request Jun 21, 2024
…led error (#36559)

Some time we met error like:
```
2024-06-15 17:26:16,492 WARN (mysql-nio-pool-206|11598) [ConnectProcessor.handleQueryException():420] Process one query failed because IOException:
java.io.IOException: Write mysql packet failed.[write=646624, needToWrite=2097119]
at org.apache.doris.mysql.MysqlChannel.realNetSend(MysqlChannel.java:407) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.mysql.MysqlChannel.flush(MysqlChannel.java:436) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.mysql.MysqlChannel.writeBuffer(MysqlChannel.java:467) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.mysql.MysqlChannel.sendOnePacket(MysqlChannel.java:500) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.qe.StmtExecutor.sendResult(StmtExecutor.java:1747) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.qe.StmtExecutor.handleQueryStmt(StmtExecutor.java:1674) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.qe.StmtExecutor.handleQueryWithRetry(StmtExecutor.java:779) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.qe.StmtExecutor.executeByNereids(StmtExecutor.java:731) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.qe.StmtExecutor.execute(StmtExecutor.java:533) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.qe.StmtExecutor.execute(StmtExecutor.java:512) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.qe.ConnectProcessor.executeQuery(ConnectProcessor.java:307) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.qe.ConnectProcessor.handleQuery(ConnectProcessor.java:203) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.qe.MysqlConnectProcessor.handleQuery(MysqlConnectProcessor.java:177) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.qe.MysqlConnectProcessor.dispatch(MysqlConnectProcessor.java:205) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.qe.MysqlConnectProcessor.processOnce(MysqlConnectProcessor.java:258) ~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.mysql.ReadListener.lambda$handleEvent$0(ReadListener.java:52) ~[doris-fe.jar:1.2-SNAPSHOT]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_352-352]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_352-352]
at java.lang.Thread.run(Thread.java:750) ~[?:1.8.0_352-352]
```

After that, if user call `connection.close()` in jdbc, it may be
blocked.
And we can still see this connection in `show processlist`.

We should kill this connection because it is already broken.
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. dev/2.1.4-merged dev/3.0.0-merged reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants