Skip to content

[fix](fe) Fix stale timestamp in CatalogRecycleBin erase daemon#63310

Open
heguanhui wants to merge 1 commit into
apache:masterfrom
heguanhui:fix/recycle-bin-stale-starttime
Open

[fix](fe) Fix stale timestamp in CatalogRecycleBin erase daemon#63310
heguanhui wants to merge 1 commit into
apache:masterfrom
heguanhui:fix/recycle-bin-stale-starttime

Conversation

@heguanhui

Copy link
Copy Markdown
Contributor

What problem does this PR solve?

Issue Number: close #xxx

Problem Summary:

CatalogRecycleBin.runAfterCatalogReady() captures System.currentTimeMillis() once at the beginning of the method and shares this timestamp across erasePartition(), eraseTable(), and eraseDatabase(). Since each erase operation can take significant time (I/O, log writes, lock acquisition), the later methods use a stale timestamp for expiration checks, causing delayed cleanup of tables and databases.

For example, if erasePartition takes 5 minutes, eraseTable and eraseDatabase will use a timestamp that is 5 minutes old, potentially skipping items that became eligible for cleanup during that period.

Fix

Each erase method now gets its own fresh System.currentTimeMillis() call, ensuring accurate expiration checks.

Before:

long currentTimeMs = System.currentTimeMillis();
erasePartition(currentTimeMs);
eraseTable(currentTimeMs);
eraseDatabase(currentTimeMs);

After:

erasePartition(System.currentTimeMillis());
eraseTable(System.currentTimeMillis());
eraseDatabase(System.currentTimeMillis());

Release note

Fix delayed cleanup of tables and databases in CatalogRecycleBin when partition erasure takes significant time

Check List (For Author)

  • Test: Unit Test
    • Added testEraseUsesFreshCurrentTime in CatalogRecycleBinTest that creates a table with 1000 partitions, force-drops them, and verifies that tables and databases with expired recycle times are properly cleaned up even when partition erasure takes time
  • Behavior changed: No (only fixes timing accuracy, no API or config changes)
  • Does this need documentation: No

@hello-stephen

Copy link
Copy Markdown
Contributor

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?

@heguanhui

Copy link
Copy Markdown
Contributor Author

rub buildall

@heguanhui

Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen

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

------ Round 1 ----------------------------------
orders	Doris	NULL	NULL	0	0	0	NULL	0	NULL	NULL	2023-12-26 18:27:23	2023-12-26 18:42:55	NULL	utf-8	NULL	NULL	
============================================
q1	17605	4019	3937	3937
q2	q3	10815	1406	819	819
q4	4690	469	343	343
q5	7567	2258	2107	2107
q6	261	176	135	135
q7	962	764	654	654
q8	9409	1684	1630	1630
q9	6968	4940	4928	4928
q10	6452	2085	1785	1785
q11	452	282	246	246
q12	692	421	293	293
q13	18186	3307	2811	2811
q14	262	253	233	233
q15	q16	815	768	708	708
q17	1002	878	841	841
q18	6835	5801	5583	5583
q19	1183	1237	1229	1229
q20	530	444	281	281
q21	5903	2712	2554	2554
q22	455	384	312	312
Total cold run time: 101044 ms
Total hot run time: 31429 ms

----- Round 2, with runtime_filter_mode=off -----
orders	Doris	NULL	NULL	150000000	42	6422171781	NULL	22778155	NULL	NULL	2023-12-26 18:27:23	2023-12-26 18:42:55	NULL	utf-8	NULL	NULL	
============================================
q1	4579	4627	4723	4627
q2	q3	4946	5180	4618	4618
q4	2128	2189	1409	1409
q5	4756	4740	4703	4703
q6	234	178	134	134
q7	1869	1708	1552	1552
q8	2446	1903	1923	1903
q9	7312	7286	7228	7228
q10	4490	4411	3992	3992
q11	523	383	352	352
q12	704	718	519	519
q13	3049	3334	2865	2865
q14	270	283	248	248
q15	q16	687	715	623	623
q17	1259	1232	1226	1226
q18	7233	6827	6853	6827
q19	1091	1115	1098	1098
q20	2218	2211	1942	1942
q21	5278	4614	4467	4467
q22	537	457	395	395
Total cold run time: 55609 ms
Total hot run time: 50728 ms

@hello-stephen

Copy link
Copy Markdown
Contributor
TPC-DS: Total hot run time: 169884 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 98c43256eae708c582b6c51e66fe460dafae051a, data reload: false

query5	4310	654	536	536
query6	359	212	192	192
query7	4256	554	314	314
query8	328	238	208	208
query9	8824	4019	4025	4019
query10	442	364	298	298
query11	5776	2393	2207	2207
query12	181	128	125	125
query13	1347	617	415	415
query14	5917	5327	5047	5047
query14_1	4368	4343	4376	4343
query15	213	203	186	186
query16	1013	459	453	453
query17	1101	732	605	605
query18	2536	499	366	366
query19	224	208	170	170
query20	147	133	128	128
query21	218	141	119	119
query22	13771	13535	13375	13375
query23	17276	16365	16081	16081
query23_1	16290	16298	16137	16137
query24	7469	1747	1312	1312
query24_1	1297	1283	1319	1283
query25	574	504	433	433
query26	1330	319	171	171
query27	2679	543	329	329
query28	4460	1954	1970	1954
query29	1028	638	521	521
query30	311	237	202	202
query31	1122	1070	946	946
query32	92	76	77	76
query33	545	370	316	316
query34	1161	1130	635	635
query35	774	785	696	696
query36	1370	1346	1172	1172
query37	158	107	92	92
query38	3202	3175	3110	3110
query39	938	934	924	924
query39_1	870	885	887	885
query40	235	151	128	128
query41	72	70	68	68
query42	113	111	111	111
query43	328	336	289	289
query44	
query45	223	205	199	199
query46	1059	1185	737	737
query47	2298	2323	2182	2182
query48	398	415	312	312
query49	739	520	406	406
query50	1008	353	245	245
query51	4407	4333	4249	4249
query52	108	108	98	98
query53	259	292	211	211
query54	328	291	279	279
query55	99	92	88	88
query56	331	332	315	315
query57	1401	1401	1303	1303
query58	314	315	270	270
query59	1565	1642	1413	1413
query60	315	344	309	309
query61	162	155	154	154
query62	668	626	553	553
query63	242	199	205	199
query64	2403	781	637	637
query65	
query66	1733	486	347	347
query67	30355	29982	29734	29734
query68	
query69	447	346	314	314
query70	980	1020	986	986
query71	306	277	272	272
query72	2984	2706	2405	2405
query73	836	751	453	453
query74	5060	4971	4744	4744
query75	2691	2597	2259	2259
query76	2270	1152	818	818
query77	405	403	336	336
query78	12276	12230	11577	11577
query79	1471	1082	734	734
query80	1237	535	458	458
query81	513	277	241	241
query82	1341	158	126	126
query83	355	287	243	243
query84	263	138	113	113
query85	930	573	444	444
query86	433	343	314	314
query87	3482	3345	3220	3220
query88	3513	2672	2688	2672
query89	447	385	333	333
query90	1802	179	190	179
query91	175	169	140	140
query92	82	78	74	74
query93	1445	1436	943	943
query94	629	360	303	303
query95	683	468	336	336
query96	998	759	342	342
query97	2712	2691	2562	2562
query98	245	226	222	222
query99	1132	1121	987	987
Total cold run time: 254513 ms
Total hot run time: 169884 ms

@hello-stephen

Copy link
Copy Markdown
Contributor

FE UT Coverage Report

Increment line coverage 100.00% (3/3) 🎉
Increment coverage report
Complete coverage report

@hello-stephen

Copy link
Copy Markdown
Contributor

FE Regression Coverage Report

Increment line coverage 8.82% (3/34) 🎉
Increment coverage report
Complete coverage report

@heguanhui

Copy link
Copy Markdown
Contributor Author

/review

1 similar comment
@morningman

Copy link
Copy Markdown
Contributor

/review

@heguanhui heguanhui force-pushed the fix/recycle-bin-stale-starttime branch 2 times, most recently from 6775e09 to 3a9fdae Compare June 13, 2026 12:25
@heguanhui

Copy link
Copy Markdown
Contributor Author

/review

@heguanhui

Copy link
Copy Markdown
Contributor Author

run buildall

@heguanhui heguanhui force-pushed the fix/recycle-bin-stale-starttime branch from 3a9fdae to 621a300 Compare June 13, 2026 13:34
@heguanhui

Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen

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

------ Round 1 ----------------------------------
orders	Doris	NULL	NULL	0	0	0	NULL	0	NULL	NULL	2023-12-26 18:27:23	2023-12-26 18:42:55	NULL	utf-8	NULL	NULL	
============================================
q1	17696	4037	3949	3949
q2	q3	10758	1353	802	802
q4	4679	477	345	345
q5	7513	863	567	567
q6	175	168	136	136
q7	766	820	630	630
q8	9365	1468	1676	1468
q9	5835	4522	4476	4476
q10	6782	1743	1531	1531
q11	440	263	246	246
q12	631	428	296	296
q13	18117	3417	2789	2789
q14	264	261	236	236
q15	q16	821	771	702	702
q17	989	965	941	941
q18	7001	5647	5500	5500
q19	1321	1247	1106	1106
q20	535	390	263	263
q21	6229	2796	2741	2741
q22	446	387	317	317
Total cold run time: 100363 ms
Total hot run time: 29041 ms

----- Round 2, with runtime_filter_mode=off -----
orders	Doris	NULL	NULL	150000000	42	6422171781	NULL	22778155	NULL	NULL	2023-12-26 18:27:23	2023-12-26 18:42:55	NULL	utf-8	NULL	NULL	
============================================
q1	5078	4588	4715	4588
q2	q3	4852	5160	4681	4681
q4	2110	2192	1358	1358
q5	4820	4765	4643	4643
q6	239	179	133	133
q7	1836	1711	1570	1570
q8	2397	2086	2069	2069
q9	7943	7615	7379	7379
q10	4701	4652	4217	4217
q11	522	378	347	347
q12	726	752	532	532
q13	3027	3355	2755	2755
q14	278	288	248	248
q15	q16	673	693	607	607
q17	1270	1246	1234	1234
q18	7327	6732	6797	6732
q19	1115	1063	1097	1063
q20	2214	2210	1937	1937
q21	5614	4483	4309	4309
q22	532	465	406	406
Total cold run time: 57274 ms
Total hot run time: 50808 ms

@hello-stephen

Copy link
Copy Markdown
Contributor
TPC-DS: Total hot run time: 168029 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 621a300298116963c26e950558d255700bcfca15, data reload: false

query5	4318	613	480	480
query6	442	190	169	169
query7	4845	552	316	316
query8	364	215	203	203
query9	8771	3974	3975	3974
query10	428	310	251	251
query11	5942	2352	2162	2162
query12	152	102	96	96
query13	1245	650	428	428
query14	6385	5305	5014	5014
query14_1	4336	4324	4314	4314
query15	198	198	175	175
query16	1020	432	414	414
query17	1083	672	539	539
query18	2526	450	335	335
query19	189	178	133	133
query20	114	107	106	106
query21	216	138	116	116
query22	13667	13519	13399	13399
query23	17164	16424	16062	16062
query23_1	16198	16260	16222	16222
query24	7568	1787	1294	1294
query24_1	1315	1286	1315	1286
query25	552	468	402	402
query26	1295	311	162	162
query27	2686	543	346	346
query28	4501	1999	2004	1999
query29	1079	612	489	489
query30	310	237	198	198
query31	1102	1072	939	939
query32	108	61	59	59
query33	553	328	252	252
query34	1187	1142	648	648
query35	752	793	676	676
query36	1385	1409	1244	1244
query37	157	109	100	100
query38	3206	3115	3040	3040
query39	926	920	912	912
query39_1	895	881	894	881
query40	222	126	105	105
query41	72	64	68	64
query42	95	96	101	96
query43	314	321	282	282
query44	
query45	198	189	191	189
query46	1088	1201	713	713
query47	2383	2399	2246	2246
query48	393	415	300	300
query49	640	470	360	360
query50	997	350	267	267
query51	4309	4262	4228	4228
query52	92	90	78	78
query53	248	264	193	193
query54	279	226	206	206
query55	78	80	73	73
query56	247	229	231	229
query57	1424	1409	1312	1312
query58	286	217	216	216
query59	1556	1626	1458	1458
query60	290	260	232	232
query61	178	203	149	149
query62	705	645	566	566
query63	225	182	182	182
query64	2507	764	615	615
query65	
query66	1757	454	338	338
query67	29756	29620	29464	29464
query68	
query69	440	302	257	257
query70	954	944	955	944
query71	288	219	206	206
query72	2774	2612	2346	2346
query73	856	790	433	433
query74	5088	4938	4790	4790
query75	2616	2556	2218	2218
query76	2332	1151	762	762
query77	345	374	282	282
query78	12380	12474	11754	11754
query79	1404	1072	770	770
query80	1286	465	377	377
query81	516	275	245	245
query82	598	154	121	121
query83	344	276	244	244
query84	
query85	884	506	406	406
query86	432	297	279	279
query87	3401	3325	3209	3209
query88	3637	2735	2736	2735
query89	424	386	324	324
query90	1969	185	175	175
query91	166	158	136	136
query92	62	62	56	56
query93	1577	1482	889	889
query94	724	357	295	295
query95	672	458	334	334
query96	1140	793	341	341
query97	2721	2676	2563	2563
query98	207	199	201	199
query99	1155	1165	1031	1031
Total cold run time: 251374 ms
Total hot run time: 168029 ms

@hello-stephen

Copy link
Copy Markdown
Contributor

FE Regression Coverage Report

Increment line coverage 66.67% (4/6) 🎉
Increment coverage report
Complete coverage report

@yx-keith yx-keith left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The core change is reasonable and low‑risk: calling System.currentTimeMillis() per erase stage instead of once is correct, and since isExpire uses latency = currentTimeMs - recycleTime, a fresher (later) timestamp only makes more items eligible — it doesn't break the partition → table → db ordering invariant (partitions are already processed first). A few things I'd like to see addressed before this goes in:

  1. The injected clock is unused and adds complexity. You added LongSupplier clock + @VisibleForTesting setClock(), but none of the tests actually call setClock() — they reproduce timing via subclassing + Thread.sleep instead. So the clock abstraction is effectively dead code here. Please pick one direction:

Either use setClock() in the tests (fast, deterministic, no sleeps), or
Drop the clock entirely and just call System.currentTimeMillis() three times — which is exactly what the PR description's "After" snippet shows. Right now the description and the implementation disagree.
2. The tests rely on real Thread.sleep (~6s each, ~24s total). This noticeably slows down FE UT and is the kind of wall‑clock‑timing test the project generally avoids. Injecting the clock (point 1) would let you advance time deterministically and remove all the sleeps.

  1. testOldCode* tests re‑implement the bug and assert it's buggy. BuggyRecycleBin overrides runAfterCatalogReady() with the old shared‑timestamp logic, so these tests exercise the mock, not production code. They add ~12s of sleep for no real coverage — suggest removing them and keeping only the "new code" assertions.

  2. The partition/table assertions are vacuous. The tests only recycleDatabase(...) — no table or partition is ever recycled. isRecyclePartition/isRecycleTable are isRecycleDatabase(dbId) || ..., so those assertions pass purely off the database's state; the only thing actually verified is database erase timing. The test names (...TableDbWork) are misleading. Please either recycle a real table+partition so the assertions mean something, or scope the test/names to what's actually covered.

  3. Unrelated formatting churn. The diff reindents closing parens (16 → 8 spaces) across ~17 existing test methods. Please revert these to keep the diff minimal.

On impact: worth noting the practical window is small — the daemon re‑runs every catalog_recycle_bin_interval_ms (30s default) and catalog_trash_expire_second defaults to 1 day, so missed items are picked up on the next cycle. The fix is a correct nicety, but the PR description ("5 minutes → skipped") overstates a persistent effect; consider toning it down.

Suggested shape: use setClock() to drive time, drop Thread.sleep and the testOldCode* cases, keep one test that recycles a real partition+table+db and verifies they're erased under the fixed path, and revert the formatting changes.

@heguanhui heguanhui force-pushed the fix/recycle-bin-stale-starttime branch 2 times, most recently from 11cb708 to a15360e Compare June 15, 2026 13:39
@heguanhui

Copy link
Copy Markdown
Contributor Author

/review

@heguanhui

Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen

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

------ Round 1 ----------------------------------
orders	Doris	NULL	NULL	0	0	0	NULL	0	NULL	NULL	2023-12-26 18:27:23	2023-12-26 18:42:55	NULL	utf-8	NULL	NULL	
============================================
q1	17825	4106	4039	4039
q2	q3	10757	1401	815	815
q4	4724	477	355	355
q5	7878	894	567	567
q6	209	169	140	140
q7	827	842	617	617
q8	10433	1626	1628	1626
q9	6822	4485	4502	4485
q10	6806	1831	1504	1504
q11	436	263	247	247
q12	676	426	295	295
q13	18177	3345	2788	2788
q14	263	252	236	236
q15	q16	822	765	705	705
q17	1000	884	1027	884
q18	7154	5779	5536	5536
q19	1221	1307	1111	1111
q20	509	408	265	265
q21	5706	2573	2313	2313
q22	449	350	297	297
Total cold run time: 102694 ms
Total hot run time: 28825 ms

----- Round 2, with runtime_filter_mode=off -----
orders	Doris	NULL	NULL	150000000	42	6422171781	NULL	22778155	NULL	NULL	2023-12-26 18:27:23	2023-12-26 18:42:55	NULL	utf-8	NULL	NULL	
============================================
q1	4348	4249	4273	4249
q2	q3	4555	4959	4301	4301
q4	2106	2226	1381	1381
q5	4487	4323	4304	4304
q6	251	176	129	129
q7	1717	2128	1590	1590
q8	2491	2232	2072	2072
q9	7924	7884	7899	7884
q10	4813	4782	4332	4332
q11	576	432	542	432
q12	757	748	556	556
q13	3222	3715	2997	2997
q14	303	324	287	287
q15	q16	716	753	645	645
q17	1352	1334	1315	1315
q18	7788	7242	6754	6754
q19	1098	1063	1101	1063
q20	2217	2204	1973	1973
q21	5257	5036	4458	4458
q22	542	486	399	399
Total cold run time: 56520 ms
Total hot run time: 51121 ms

@hello-stephen

Copy link
Copy Markdown
Contributor
TPC-DS: Total hot run time: 168866 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 a15360e85ac725af3a16308e33e1996bd355f920, data reload: false

query5	4332	627	476	476
query6	429	192	175	175
query7	4860	568	312	312
query8	369	223	199	199
query9	8774	4040	4043	4040
query10	441	312	260	260
query11	5941	2338	2183	2183
query12	162	102	99	99
query13	1265	607	418	418
query14	6386	5429	5083	5083
query14_1	4404	4436	4388	4388
query15	205	198	175	175
query16	1000	456	421	421
query17	1121	721	584	584
query18	2655	494	359	359
query19	202	196	149	149
query20	113	111	109	109
query21	224	150	121	121
query22	13634	13585	13366	13366
query23	17418	16501	16233	16233
query23_1	16195	16228	16295	16228
query24	7480	1772	1266	1266
query24_1	1314	1314	1317	1314
query25	581	468	399	399
query26	1298	310	178	178
query27	2675	570	332	332
query28	4463	2017	2041	2017
query29	1081	646	501	501
query30	313	231	202	202
query31	1105	1075	965	965
query32	111	66	60	60
query33	543	328	261	261
query34	1178	1132	669	669
query35	761	811	681	681
query36	1459	1359	1256	1256
query37	160	102	87	87
query38	3193	3131	3030	3030
query39	913	909	908	908
query39_1	867	873	874	873
query40	227	118	100	100
query41	63	73	59	59
query42	92	92	98	92
query43	315	320	272	272
query44	
query45	200	185	176	176
query46	1061	1230	760	760
query47	2307	2338	2180	2180
query48	366	421	290	290
query49	619	490	335	335
query50	1020	350	257	257
query51	4377	4385	4212	4212
query52	86	86	76	76
query53	255	266	193	193
query54	262	216	217	216
query55	80	74	70	70
query56	227	225	222	222
query57	1433	1413	1334	1334
query58	234	209	201	201
query59	1599	1639	1377	1377
query60	285	244	230	230
query61	158	152	157	152
query62	702	660	589	589
query63	229	184	188	184
query64	2493	763	616	616
query65	
query66	1743	451	340	340
query67	29763	29657	28924	28924
query68	
query69	412	306	271	271
query70	992	933	942	933
query71	297	222	208	208
query72	2987	2606	2333	2333
query73	836	766	454	454
query74	5122	4943	4792	4792
query75	2650	2581	2267	2267
query76	2294	1136	776	776
query77	352	367	289	289
query78	12517	12563	12023	12023
query79	1435	1089	772	772
query80	921	465	388	388
query81	501	288	247	247
query82	583	158	118	118
query83	325	273	251	251
query84	
query85	882	537	424	424
query86	400	303	298	298
query87	3402	3412	3193	3193
query88	3602	2743	2733	2733
query89	417	387	327	327
query90	1867	189	178	178
query91	173	156	130	130
query92	67	62	56	56
query93	1434	1490	862	862
query94	628	357	319	319
query95	680	408	445	408
query96	1099	803	328	328
query97	2708	2671	2622	2622
query98	208	204	205	204
query99	1117	1172	1004	1004
Total cold run time: 251091 ms
Total hot run time: 168866 ms

@heguanhui

Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen

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

------ Round 1 ----------------------------------
orders	Doris	NULL	NULL	0	0	0	NULL	0	NULL	NULL	2023-12-26 18:27:23	2023-12-26 18:42:55	NULL	utf-8	NULL	NULL	
============================================
q1	17696	3981	3931	3931
q2	q3	10842	1361	780	780
q4	4682	472	339	339
q5	7563	851	596	596
q6	179	165	135	135
q7	782	814	635	635
q8	9815	1569	1464	1464
q9	7012	4434	4450	4434
q10	6805	1813	1498	1498
q11	432	268	243	243
q12	642	421	289	289
q13	18158	3656	2772	2772
q14	268	258	240	240
q15	q16	825	781	700	700
q17	1180	946	824	824
q18	6930	5781	5505	5505
q19	1252	1293	1078	1078
q20	495	409	253	253
q21	5769	2668	2281	2281
q22	432	357	300	300
Total cold run time: 101759 ms
Total hot run time: 28297 ms

----- Round 2, with runtime_filter_mode=off -----
orders	Doris	NULL	NULL	150000000	42	6422171781	NULL	22778155	NULL	NULL	2023-12-26 18:27:23	2023-12-26 18:42:55	NULL	utf-8	NULL	NULL	
============================================
q1	4329	4211	4231	4211
q2	q3	4474	4941	4374	4374
q4	2065	2138	1386	1386
q5	4386	4280	4278	4278
q6	226	172	125	125
q7	1715	1606	1861	1606
q8	2530	2189	2107	2107
q9	7771	7810	7749	7749
q10	4773	4775	4324	4324
q11	580	444	367	367
q12	749	749	550	550
q13	3456	3525	2895	2895
q14	300	301	266	266
q15	q16	764	759	663	663
q17	1323	1321	1296	1296
q18	8076	7314	7060	7060
q19	1187	1099	1101	1099
q20	2207	2225	1935	1935
q21	5218	4545	4383	4383
q22	493	476	413	413
Total cold run time: 56622 ms
Total hot run time: 51087 ms

@hello-stephen

Copy link
Copy Markdown
Contributor
TPC-DS: Total hot run time: 168965 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 a15360e85ac725af3a16308e33e1996bd355f920, data reload: false

query5	4305	631	470	470
query6	451	191	171	171
query7	4880	572	298	298
query8	357	209	191	191
query9	8742	3980	3977	3977
query10	442	322	253	253
query11	5852	2307	2175	2175
query12	157	100	95	95
query13	1280	595	430	430
query14	6385	5377	5069	5069
query14_1	4365	4372	4345	4345
query15	205	202	178	178
query16	1025	446	439	439
query17	1132	713	582	582
query18	2461	477	362	362
query19	210	190	144	144
query20	113	107	106	106
query21	225	145	118	118
query22	13576	13482	13449	13449
query23	17231	16498	16067	16067
query23_1	16191	16363	16273	16273
query24	7581	1752	1317	1317
query24_1	1326	1314	1320	1314
query25	594	450	402	402
query26	1307	312	168	168
query27	2723	531	339	339
query28	4438	2025	2017	2017
query29	1085	625	490	490
query30	308	236	195	195
query31	1114	1081	946	946
query32	109	62	60	60
query33	522	317	261	261
query34	1208	1130	669	669
query35	787	785	683	683
query36	1423	1398	1283	1283
query37	154	98	86	86
query38	3251	3184	3116	3116
query39	963	972	968	968
query39_1	936	914	910	910
query40	224	121	101	101
query41	65	61	61	61
query42	95	92	91	91
query43	318	323	280	280
query44	
query45	200	183	178	178
query46	1123	1223	709	709
query47	2398	2371	2271	2271
query48	391	425	291	291
query49	614	458	331	331
query50	942	335	260	260
query51	4327	4353	4304	4304
query52	86	86	74	74
query53	242	263	193	193
query54	270	218	215	215
query55	79	77	69	69
query56	216	214	213	213
query57	1449	1402	1298	1298
query58	249	203	212	203
query59	1544	1656	1420	1420
query60	286	240	225	225
query61	154	149	141	141
query62	695	659	594	594
query63	226	180	188	180
query64	2536	738	581	581
query65	
query66	1799	458	329	329
query67	29847	29677	29595	29595
query68	
query69	434	303	266	266
query70	950	963	910	910
query71	307	218	205	205
query72	2929	2640	2350	2350
query73	877	820	429	429
query74	5127	4975	4751	4751
query75	2664	2562	2229	2229
query76	2340	1130	798	798
query77	356	379	294	294
query78	12388	12380	11858	11858
query79	1467	1009	756	756
query80	1270	449	366	366
query81	518	272	237	237
query82	720	156	120	120
query83	349	284	240	240
query84	
query85	888	491	407	407
query86	435	305	291	291
query87	3385	3398	3165	3165
query88	3650	2745	2750	2745
query89	443	373	322	322
query90	1926	175	166	166
query91	201	156	134	134
query92	66	62	56	56
query93	1586	1512	846	846
query94	753	320	310	310
query95	679	370	420	370
query96	1031	755	333	333
query97	2678	2683	2581	2581
query98	210	220	199	199
query99	1132	1180	1036	1036
Total cold run time: 251914 ms
Total hot run time: 168965 ms

@hello-stephen

Copy link
Copy Markdown
Contributor

FE UT Coverage Report

Increment line coverage 100.00% (9/9) 🎉
Increment coverage report
Complete coverage report

@hello-stephen

Copy link
Copy Markdown
Contributor

FE Regression Coverage Report

Increment line coverage 77.78% (7/9) 🎉
Increment coverage report
Complete coverage report

@heguanhui heguanhui force-pushed the fix/recycle-bin-stale-starttime branch from a15360e to cf634b8 Compare June 15, 2026 18:01
@heguanhui

Copy link
Copy Markdown
Contributor Author

run buildall

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.

4 participants