Skip to content

[fix](job) fix routine load task transaction timeout error#59999

Merged
JNSimba merged 1 commit intoapache:masterfrom
sollhui:fix_txn_timeout
Jan 20, 2026
Merged

[fix](job) fix routine load task transaction timeout error#59999
JNSimba merged 1 commit intoapache:masterfrom
sollhui:fix_txn_timeout

Conversation

@sollhui
Copy link
Contributor

@sollhui sollhui commented Jan 18, 2026

What problem does this PR solve?

Problem

When routine load uses adaptive batch interval (introduced in #56930), the FE transaction timeout does not match the BE task timeout, causing transactions to be aborted by txnCleaner while BE is still processing.

Root Cause

In RoutineLoadTaskScheduler.scheduleOneTask(), the execution order is:

  1. beginTxn() - creates transaction with original timeoutMs
  2. createRoutineLoadTask()adaptiveBatchParam() - updates timeoutMs to adaptive value

This causes a mismatch:

  • FE transaction timeout: original value (e.g., 200 seconds)
  • BE task timeout: adaptive value (e.g., 360 seconds)

Release note

None

Check List (For Author)

  • Test

    • Regression test
    • Unit Test
    • Manual test (add detailed scripts or steps below)
    • No need to test or manual test. Explain why:
      • This is a refactor/code format and no logic has been changed.
      • Previous test can cover this change.
      • No code files have been changed.
      • Other reason
  • Behavior changed:

    • No.
    • Yes.
  • Does this need documentation?

    • No.
    • Yes.

Check List (For Reviewer who merge this PR)

  • Confirm the release note
  • Confirm test cases
  • Confirm document
  • Add branch pick label

@Thearas
Copy link
Contributor

Thearas commented Jan 18, 2026

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?

@sollhui
Copy link
Contributor Author

sollhui commented Jan 18, 2026

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17607	4210	4064	4064
q2	2020	358	244	244
q3	10164	1286	697	697
q4	10219	890	313	313
q5	7541	2081	1842	1842
q6	188	176	138	138
q7	935	796	677	677
q8	9263	1367	1164	1164
q9	5079	4693	4617	4617
q10	6767	1787	1407	1407
q11	487	307	272	272
q12	686	746	600	600
q13	17763	3823	3059	3059
q14	295	296	270	270
q15	591	506	505	505
q16	678	668	644	644
q17	647	808	482	482
q18	6744	6315	6306	6306
q19	1289	988	611	611
q20	372	356	248	248
q21	3078	2475	2273	2273
q22	1031	999	965	965
Total cold run time: 103444 ms
Total hot run time: 31398 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4102	4034	4013	4013
q2	330	382	314	314
q3	2092	2588	2253	2253
q4	1320	1731	1299	1299
q5	4095	4014	4088	4014
q6	208	172	130	130
q7	1843	1802	1632	1632
q8	2833	2515	2443	2443
q9	7395	7107	7269	7107
q10	2563	2770	2354	2354
q11	559	510	469	469
q12	729	758	621	621
q13	3681	4162	3501	3501
q14	342	328	288	288
q15	554	511	527	511
q16	668	680	630	630
q17	1224	1395	1399	1395
q18	8193	8236	7999	7999
q19	907	832	873	832
q20	1982	2066	1920	1920
q21	4784	4279	4065	4065
q22	1058	1036	956	956
Total cold run time: 51462 ms
Total hot run time: 48746 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 174679 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 2b87335ff3e4137ace5109bcb655a56681c9919b, data reload: false

query5	4433	629	503	503
query6	345	222	209	209
query7	4212	468	255	255
query8	340	246	245	245
query9	8739	2921	2885	2885
query10	523	384	347	347
query11	15328	15112	15029	15029
query12	168	110	111	110
query13	1272	469	375	375
query14	6204	2998	2738	2738
query14_1	2608	2599	2601	2599
query15	202	192	171	171
query16	964	483	473	473
query17	1066	628	528	528
query18	2522	418	327	327
query19	219	216	189	189
query20	122	115	111	111
query21	243	139	112	112
query22	4370	4261	4165	4165
query23	16035	15609	15394	15394
query23_1	15496	15456	15427	15427
query24	7248	1552	1148	1148
query24_1	1160	1169	1157	1157
query25	505	424	381	381
query26	819	261	144	144
query27	2781	445	282	282
query28	4508	2197	2179	2179
query29	716	518	411	411
query30	307	238	202	202
query31	799	625	572	572
query32	80	72	70	70
query33	521	337	300	300
query34	864	869	538	538
query35	716	768	704	704
query36	880	904	782	782
query37	132	95	82	82
query38	2774	2684	2693	2684
query39	773	746	762	746
query39_1	715	708	700	700
query40	210	136	116	116
query41	67	66	61	61
query42	103	101	98	98
query43	437	434	414	414
query44	1311	754	747	747
query45	183	194	180	180
query46	834	959	587	587
query47	1439	1450	1373	1373
query48	320	323	248	248
query49	598	422	337	337
query50	623	273	203	203
query51	3769	3800	3811	3800
query52	105	108	91	91
query53	282	320	267	267
query54	296	265	254	254
query55	79	86	77	77
query56	304	312	304	304
query57	1074	1064	923	923
query58	265	253	254	253
query59	2173	2111	2183	2111
query60	324	331	307	307
query61	147	151	162	151
query62	380	359	316	316
query63	297	263	273	263
query64	4245	1355	1043	1043
query65	3799	3763	3763	3763
query66	1409	433	337	337
query67	15471	15657	15398	15398
query68	2448	1115	796	796
query69	446	372	323	323
query70	970	958	932	932
query71	328	313	296	296
query72	5198	3176	3275	3176
query73	595	728	314	314
query74	8732	8734	8665	8665
query75	2766	2795	2468	2468
query76	2274	1056	646	646
query77	367	395	310	310
query78	9682	9825	9175	9175
query79	1046	927	589	589
query80	1195	596	489	489
query81	514	262	234	234
query82	1334	144	106	106
query83	314	252	240	240
query84	252	113	90	90
query85	902	476	429	429
query86	372	287	299	287
query87	2901	2849	2812	2812
query88	3496	2550	2545	2545
query89	382	354	317	317
query90	1884	181	159	159
query91	160	161	131	131
query92	77	76	70	70
query93	945	904	542	542
query94	581	318	287	287
query95	581	343	312	312
query96	641	497	232	232
query97	2392	2405	2358	2358
query98	214	210	207	207
query99	610	568	519	519
Total cold run time: 245930 ms
Total hot run time: 174679 ms

@doris-robot
Copy link

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

query1	0.06	0.05	0.05
query2	0.10	0.05	0.05
query3	0.26	0.09	0.09
query4	1.60	0.11	0.11
query5	0.28	0.26	0.25
query6	1.14	0.66	0.65
query7	0.03	0.02	0.03
query8	0.06	0.04	0.04
query9	0.57	0.51	0.50
query10	0.55	0.54	0.55
query11	0.14	0.09	0.10
query12	0.15	0.10	0.10
query13	0.61	0.59	0.60
query14	0.95	0.94	0.96
query15	0.80	0.78	0.78
query16	0.40	0.40	0.41
query17	1.05	1.09	1.06
query18	0.23	0.21	0.21
query19	1.97	1.88	1.88
query20	0.02	0.02	0.01
query21	15.46	0.29	0.14
query22	5.21	0.06	0.04
query23	16.06	0.29	0.10
query24	0.96	0.57	0.31
query25	0.07	0.05	0.06
query26	0.13	0.14	0.13
query27	0.09	0.08	0.06
query28	3.14	1.08	0.88
query29	12.57	3.90	3.19
query30	0.27	0.13	0.14
query31	2.82	0.63	0.39
query32	3.24	0.56	0.46
query33	3.02	3.08	3.10
query34	15.88	5.21	4.38
query35	4.44	4.40	4.48
query36	0.65	0.50	0.49
query37	0.10	0.06	0.07
query38	0.07	0.05	0.03
query39	0.04	0.03	0.03
query40	0.16	0.13	0.13
query41	0.09	0.03	0.03
query42	0.05	0.03	0.02
query43	0.05	0.04	0.03
Total cold run time: 95.54 s
Total hot run time: 26.92 s

@sollhui sollhui force-pushed the fix_txn_timeout branch 2 times, most recently from e5c0fcf to a0498c6 Compare January 18, 2026 15:43
@sollhui
Copy link
Contributor Author

sollhui commented Jan 18, 2026

run buildall

@sollhui
Copy link
Contributor Author

sollhui commented Jan 19, 2026

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17615	4190	4051	4051
q2	2014	364	236	236
q3	10183	1271	695	695
q4	10220	871	307	307
q5	7509	2061	1857	1857
q6	185	174	142	142
q7	906	774	673	673
q8	9278	1377	1116	1116
q9	4873	4597	4642	4597
q10	6775	1799	1381	1381
q11	525	299	303	299
q12	678	777	578	578
q13	17760	3788	3137	3137
q14	286	301	276	276
q15	597	522	502	502
q16	704	685	642	642
q17	649	838	431	431
q18	6807	6304	6516	6304
q19	1421	960	602	602
q20	395	353	242	242
q21	3049	2510	2204	2204
q22	1077	1028	1013	1013
Total cold run time: 103506 ms
Total hot run time: 31285 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4126	4132	4109	4109
q2	329	392	342	342
q3	2156	2679	2298	2298
q4	1358	1817	1375	1375
q5	4199	4078	4127	4078
q6	220	174	132	132
q7	1858	1848	1945	1848
q8	2628	2408	2305	2305
q9	7367	7184	7188	7184
q10	2550	2813	2443	2443
q11	542	470	458	458
q12	744	781	684	684
q13	3680	4072	3387	3387
q14	287	298	278	278
q15	533	503	506	503
q16	637	694	644	644
q17	1189	1269	1366	1269
q18	7918	7594	8134	7594
q19	875	820	825	820
q20	1973	2074	1963	1963
q21	4994	4640	4185	4185
q22	1099	1011	991	991
Total cold run time: 51262 ms
Total hot run time: 48890 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 174026 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 a0498c6b79b8a60157748a570070cba5b8075d4a, data reload: false

query5	4644	639	473	473
query6	337	235	217	217
query7	4222	463	265	265
query8	338	261	265	261
query9	8737	2898	2881	2881
query10	535	383	354	354
query11	15175	15185	14805	14805
query12	177	115	116	115
query13	1279	472	362	362
query14	6339	3000	2732	2732
query14_1	2674	2603	2610	2603
query15	200	187	179	179
query16	1018	489	474	474
query17	1069	651	538	538
query18	2508	424	331	331
query19	221	212	185	185
query20	117	115	109	109
query21	213	137	110	110
query22	3869	3896	4054	3896
query23	16066	15490	15471	15471
query23_1	15650	15435	15520	15435
query24	7150	1548	1201	1201
query24_1	1146	1164	1180	1164
query25	518	420	371	371
query26	1233	265	148	148
query27	2769	441	283	283
query28	4561	2174	2174	2174
query29	791	516	419	419
query30	312	244	202	202
query31	769	633	570	570
query32	82	72	70	70
query33	512	340	301	301
query34	900	892	522	522
query35	730	769	674	674
query36	893	905	829	829
query37	123	96	84	84
query38	2690	2716	2686	2686
query39	785	756	747	747
query39_1	704	717	701	701
query40	213	134	117	117
query41	65	65	61	61
query42	102	104	99	99
query43	464	503	434	434
query44	1334	740	745	740
query45	184	187	185	185
query46	837	951	565	565
query47	1426	1517	1364	1364
query48	314	326	241	241
query49	621	433	329	329
query50	638	274	205	205
query51	3782	3734	3698	3698
query52	103	106	97	97
query53	285	328	266	266
query54	290	260	253	253
query55	85	86	74	74
query56	301	308	293	293
query57	1000	970	938	938
query58	279	256	256	256
query59	2067	2105	1961	1961
query60	332	341	318	318
query61	152	151	141	141
query62	377	341	326	326
query63	297	266	267	266
query64	4924	1327	1054	1054
query65	3811	3780	3747	3747
query66	1436	427	335	335
query67	15571	15545	15441	15441
query68	2426	1105	788	788
query69	451	366	330	330
query70	1028	972	925	925
query71	327	312	292	292
query72	5417	3344	3262	3262
query73	599	725	306	306
query74	8788	8646	8609	8609
query75	2759	2838	2454	2454
query76	2289	1070	652	652
query77	366	372	313	313
query78	9752	9732	9229	9229
query79	1075	890	574	574
query80	819	556	473	473
query81	490	265	232	232
query82	1358	148	110	110
query83	327	264	245	245
query84	250	113	90	90
query85	903	503	422	422
query86	345	319	299	299
query87	2871	2853	2793	2793
query88	3502	2595	2564	2564
query89	383	348	326	326
query90	1874	168	167	167
query91	172	156	130	130
query92	75	72	65	65
query93	940	917	548	548
query94	594	326	286	286
query95	589	386	319	319
query96	642	520	228	228
query97	2392	2436	2295	2295
query98	213	197	193	193
query99	616	551	507	507
Total cold run time: 247004 ms
Total hot run time: 174026 ms

@doris-robot
Copy link

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

query1	0.06	0.05	0.05
query2	0.09	0.04	0.05
query3	0.25	0.08	0.08
query4	1.61	0.12	0.12
query5	0.28	0.25	0.26
query6	1.15	0.67	0.64
query7	0.03	0.03	0.03
query8	0.05	0.05	0.04
query9	0.58	0.51	0.49
query10	0.56	0.55	0.55
query11	0.14	0.10	0.10
query12	0.14	0.11	0.11
query13	0.60	0.58	0.58
query14	0.96	0.94	0.95
query15	0.80	0.76	0.78
query16	0.40	0.40	0.40
query17	1.11	1.06	1.10
query18	0.23	0.24	0.22
query19	1.98	1.85	1.82
query20	0.02	0.01	0.02
query21	15.56	0.28	0.15
query22	5.24	0.05	0.04
query23	16.07	0.28	0.10
query24	1.16	0.57	0.93
query25	0.13	0.06	0.05
query26	0.14	0.14	0.13
query27	0.09	0.05	0.08
query28	4.95	1.05	0.89
query29	12.52	3.95	3.17
query30	0.27	0.14	0.12
query31	2.83	0.63	0.39
query32	3.24	0.56	0.45
query33	3.00	3.02	2.99
query34	16.03	5.07	4.44
query35	4.46	4.54	4.39
query36	0.66	0.49	0.48
query37	0.10	0.06	0.07
query38	0.07	0.04	0.03
query39	0.04	0.03	0.03
query40	0.16	0.14	0.13
query41	0.09	0.04	0.03
query42	0.04	0.03	0.04
query43	0.05	0.04	0.04
Total cold run time: 97.94 s
Total hot run time: 27.05 s

@hello-stephen
Copy link
Contributor

FE UT Coverage Report

Increment line coverage 0.00% (0/9) 🎉
Increment coverage report
Complete coverage report

@sollhui
Copy link
Contributor Author

sollhui commented Jan 19, 2026

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17612	4284	4039	4039
q2	2041	359	240	240
q3	10175	1255	694	694
q4	10212	832	303	303
q5	7532	2065	1835	1835
q6	182	166	140	140
q7	930	775	663	663
q8	9262	1342	1245	1245
q9	4828	4626	4584	4584
q10	6769	1801	1395	1395
q11	522	288	288	288
q12	713	742	581	581
q13	17790	3802	3073	3073
q14	298	315	274	274
q15	588	511	518	511
q16	686	694	660	660
q17	642	756	491	491
q18	6926	6267	6949	6267
q19	1947	1010	667	667
q20	421	403	268	268
q21	3213	2577	2632	2577
q22	1127	1089	1034	1034
Total cold run time: 104416 ms
Total hot run time: 31829 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4303	4308	4343	4308
q2	324	411	339	339
q3	2259	2832	2416	2416
q4	1382	2013	1557	1557
q5	4571	4256	4444	4256
q6	215	162	128	128
q7	2028	1933	1704	1704
q8	2521	2388	2382	2382
q9	7317	7184	7216	7184
q10	2402	2652	2324	2324
q11	583	467	456	456
q12	734	705	572	572
q13	3328	3797	3042	3042
q14	265	283	254	254
q15	523	503	485	485
q16	614	651	600	600
q17	1111	1273	1327	1273
q18	7274	7072	7126	7072
q19	830	799	804	799
q20	1904	1969	1787	1787
q21	4460	4234	4170	4170
q22	1068	1018	950	950
Total cold run time: 50016 ms
Total hot run time: 48058 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 173475 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 7cb802b6c1164c93fd5b4fbf42ccaca354c547a0, data reload: false

query5	4397	647	507	507
query6	333	231	223	223
query7	4215	461	263	263
query8	338	240	237	237
query9	8732	2878	2880	2878
query10	517	385	329	329
query11	15125	15081	14890	14890
query12	168	111	112	111
query13	1236	499	397	397
query14	6148	3006	2755	2755
query14_1	2673	2869	2654	2654
query15	200	183	168	168
query16	981	481	462	462
query17	1059	625	537	537
query18	2494	416	327	327
query19	206	208	184	184
query20	117	107	113	107
query21	215	140	122	122
query22	3878	4244	3929	3929
query23	15878	15490	15510	15490
query23_1	15530	15381	15422	15381
query24	7137	1519	1173	1173
query24_1	1180	1149	1178	1149
query25	517	431	375	375
query26	1091	258	155	155
query27	2763	443	278	278
query28	4586	2156	2159	2156
query29	727	503	441	441
query30	311	236	208	208
query31	793	626	553	553
query32	86	77	69	69
query33	513	337	299	299
query34	899	887	541	541
query35	725	744	683	683
query36	859	875	852	852
query37	146	102	86	86
query38	2769	2678	2651	2651
query39	770	743	726	726
query39_1	737	738	715	715
query40	217	142	121	121
query41	69	63	62	62
query42	105	104	102	102
query43	441	455	411	411
query44	1345	760	757	757
query45	188	181	172	172
query46	840	953	581	581
query47	1423	1413	1353	1353
query48	308	332	243	243
query49	609	434	345	345
query50	613	271	196	196
query51	3753	3735	3723	3723
query52	103	107	95	95
query53	302	317	277	277
query54	286	263	265	263
query55	81	85	83	83
query56	302	309	291	291
query57	1030	1022	957	957
query58	287	269	267	267
query59	2123	2163	1968	1968
query60	368	336	310	310
query61	150	145	146	145
query62	383	362	312	312
query63	297	281	269	269
query64	4601	1291	960	960
query65	3715	3705	3709	3705
query66	1384	421	312	312
query67	15446	15525	15527	15525
query68	2420	1106	777	777
query69	450	360	328	328
query70	990	937	922	922
query71	322	320	289	289
query72	5524	3289	2487	2487
query73	600	710	323	323
query74	8762	8757	8522	8522
query75	2777	2813	2447	2447
query76	2290	1062	684	684
query77	381	392	321	321
query78	9643	9882	9106	9106
query79	1072	910	588	588
query80	1301	618	513	513
query81	545	268	240	240
query82	945	152	116	116
query83	334	267	252	252
query84	265	113	97	97
query85	964	566	531	531
query86	411	335	277	277
query87	2876	2904	2779	2779
query88	3494	2577	2565	2565
query89	377	345	326	326
query90	1954	176	171	171
query91	166	157	134	134
query92	77	74	71	71
query93	1065	904	546	546
query94	636	310	294	294
query95	579	337	334	334
query96	634	532	234	234
query97	2335	2367	2419	2367
query98	210	206	196	196
query99	591	589	527	527
Total cold run time: 246160 ms
Total hot run time: 173475 ms

@doris-robot
Copy link

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

query1	0.05	0.04	0.05
query2	0.09	0.04	0.04
query3	0.25	0.08	0.09
query4	1.61	0.11	0.11
query5	0.28	0.26	0.25
query6	1.15	0.65	0.65
query7	0.03	0.02	0.02
query8	0.05	0.04	0.04
query9	0.57	0.50	0.50
query10	0.55	0.54	0.53
query11	0.14	0.09	0.10
query12	0.14	0.10	0.11
query13	0.59	0.58	0.59
query14	0.94	0.94	0.94
query15	0.79	0.79	0.79
query16	0.41	0.39	0.39
query17	1.02	0.99	1.00
query18	0.23	0.22	0.21
query19	1.91	1.83	1.92
query20	0.02	0.01	0.01
query21	15.41	0.28	0.14
query22	5.25	0.05	0.05
query23	16.22	0.29	0.10
query24	1.26	0.34	0.52
query25	0.09	0.08	0.05
query26	0.14	0.13	0.14
query27	0.06	0.05	0.05
query28	3.92	1.06	0.89
query29	12.51	3.87	3.13
query30	0.28	0.13	0.14
query31	2.81	0.62	0.40
query32	3.23	0.54	0.46
query33	2.99	3.00	2.95
query34	16.29	5.07	4.48
query35	4.48	4.44	4.44
query36	0.64	0.50	0.50
query37	0.11	0.07	0.06
query38	0.06	0.04	0.04
query39	0.04	0.03	0.03
query40	0.17	0.15	0.14
query41	0.09	0.04	0.03
query42	0.04	0.03	0.03
query43	0.04	0.03	0.04
Total cold run time: 96.95 s
Total hot run time: 26.79 s

@hello-stephen
Copy link
Contributor

FE Regression Coverage Report

Increment line coverage 88.89% (8/9) 🎉
Increment coverage report
Complete coverage report

1 similar comment
@hello-stephen
Copy link
Contributor

FE Regression Coverage Report

Increment line coverage 88.89% (8/9) 🎉
Increment coverage report
Complete coverage report

Copy link
Contributor

@liaoxin01 liaoxin01 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 Jan 19, 2026
@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.

@JNSimba JNSimba merged commit b44429e into apache:master Jan 20, 2026
28 of 29 checks passed
github-actions bot pushed a commit that referenced this pull request Jan 20, 2026
### What problem does this PR solve?

## Problem

When routine load uses adaptive batch interval (introduced in #56930),
the FE transaction timeout does not match the BE task timeout, causing
transactions to be aborted by `txnCleaner` while BE is still processing.

### Root Cause

In `RoutineLoadTaskScheduler.scheduleOneTask()`, the execution order is:
1. `beginTxn()` - creates transaction with **original** `timeoutMs`
2. `createRoutineLoadTask()` → `adaptiveBatchParam()` - updates
`timeoutMs` to **adaptive** value

This causes a mismatch:
- FE transaction timeout: original value (e.g., 200 seconds)
- BE task timeout: adaptive value (e.g., 360 seconds)
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/4.0.3-merged reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants

Comments