Skip to content

[feature](be) Parallelize garbage sweep across data directories - #65699

Draft
wenzhenghu wants to merge 25 commits into
apache:masterfrom
wenzhenghu:wzh/master-shutdown-tablet-sweep-config
Draft

[feature](be) Parallelize garbage sweep across data directories#65699
wenzhenghu wants to merge 25 commits into
apache:masterfrom
wenzhenghu:wzh/master-shutdown-tablet-sweep-config

Conversation

@wenzhenghu

@wenzhenghu wenzhenghu commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

What problem does this PR solve?

Issue Number: None

Related PR: None

Problem Summary:

The BE garbage sweep coordinator previously executed path-scoped cleanup serially
across all DataDirs. A slow or heavily loaded DataDir could therefore extend the
entire sweep epoch and delay cleanup on other independent disks. Shutdown tablet
cleanup also used fixed pacing and provided limited round-level observability.

This change adds an optional per-DataDir garbage sweep worker model while aligning
the configurable shutdown tablet sweep implementation with master. Each DataDir
owns a bounded worker queue, and the coordinator dispatches typed jobs in phase
order, waits for every phase to complete, and aggregates failures before advancing.

The feature is controlled by enable_data_dir_sweep_worker and is disabled by
default. When disabled, the same typed jobs and phase barriers execute
synchronously. This preserves synchronous scheduling, but the error-propagation
changes described below apply in both modes and are not identical to the
pre-change behavior.

Implementation Notes

  • Add one bounded sweep worker per DataDir for:
    • snapshot cleanup;
    • trash cleanup;
    • shutdown tablet moves;
    • remote rowset and tablet garbage collection;
    • trash capacity refresh.
  • Preserve coordinator-level phase ordering with explicit barriers while allowing
    independent DataDirs to execute the same phase concurrently.
  • Keep all jobs for one DataDir serialized and warn when multiple DataDirs share
    the same physical device.
  • Batch shutdown tablets by DataDir, preserve the global resolved-entry budget,
    aggregate per-disk results, and requeue every unresolved tablet after executor
    or submission failures.
  • Make shutdown tablet sweep pacing dynamically configurable:
    • shutdown_tablet_sweep_round_budget: [1, 10000], default 200;
    • shutdown_tablet_sweep_interval_ms: [0, 10000], default 1000;
    • invalid runtime values fall back to the historical defaults.
  • Preserve shutdown correctness:
    • reject new sweep epochs after StorageEngine shutdown starts;
    • allow active epochs to finish and consume all in-flight results;
    • then stop accepting worker jobs, drain worker queues, and join the workers.
  • Add coordinator phase latency, worker/job state, shutdown sweep, remote GC
    backlog, failure, and trash-capacity metrics.
  • Add BE unit coverage for production dispatch, global budgets, executor and
    submit failures, worker concurrency and FIFO ordering, synchronous fallback,
    shutdown lifecycle, remote GC retry behavior, and trash capacity refresh.

Behavior Changes

  • A path trash or snapshot sweep failure is aggregated into the epoch result but
    no longer skips the shutdown-tablet, global-metadata, remote-GC, or capacity
    phases.
  • A pending force-sweep request is executed even when the preceding normal sweep
    failed.
  • Remote-GC I/O failures, metadata iteration or deletion failures, and malformed
    protobuf markers fail the job. A missing storage resource is warning-only: its
    marker remains in the backlog for retry and does not increment the generic
    failed-job counter.
  • A trash-capacity refresh failure is aggregated into the epoch result.
  • Remote GC and trash-capacity refresh are separate barriered phases, so every
    remote-GC job completes before any capacity-refresh job starts.

Release note

Add an optional enable_data_dir_sweep_worker setting to parallelize garbage
sweeping across independent DataDirs. The setting is disabled by default.
Shutdown tablet sweep pacing is also dynamically configurable with additional
observability.

Check List (For Author)

  • Test:

    • Static checks:
      • build-support/clang-format.sh passed
      • build-support/check-format.sh passed
      • git diff --check passed
    • Build test:
      • ./build.sh --be passed on wzh90 with GLIBC_COMPATIBILITY=OFF
    • BE unit tests:
      • DataDirSweepWorkerTest: 9 tests passed on wzh90
      • StorageEngineTest: 4 tests passed on wzh90
      • TabletMgrTest: 16 tests passed on wzh90
    • Additional BE unit coverage added; manual execution is pending:
      • Missing remote resources retain rowset/tablet GC backlog without
        incrementing failed-job counters.
      • Malformed remote-GC protobuf markers still fail the job.
      • A shutdown-tablet job still reaches its existing worker after the DataDir
        becomes broken/unused.
      • The local run-be-ut.sh attempt stopped during CMake configuration because
        the OpenBLAS probe could not resolve *_DEFAULT_UNROLL_* macros; the new
        tests did not execute locally.
    • Deployment validation on wzh90:
      • Configured two DataDirs on independent /dev/sdc and /dev/sdb devices.
      • With workers disabled, two 5,000-directory trash jobs ran serially in
        496 ms and 434 ms; the epoch took 952 ms.
      • With workers enabled, the equivalent jobs ran concurrently in 521 ms and
        525 ms; the epoch took 538 ms, a 43.5% reduction.
      • Verified per-DataDir serialization and the
        path -> shutdown -> remote GC -> capacity refresh phase barriers.
      • Distributed 16 shutdown tablets evenly across both DataDirs. With a
        resolved-entry budget of 2 and a 200 ms interval, the backlog decreased
        from 16 to 0; 16 tablets were resolved and none failed.
      • Verified that invalid runtime budget and interval values fall back to 200
        entries and 1,000 ms at the use site.
      • Requested graceful shutdown while both workers were processing 20,000
        trash directories each. The active epoch completed before BE exit without
        a forced kill, and all 40,000 directories were removed.
      • Ran approximately 22 worker-enabled epochs without increasing the
        worker-unavailable or failed-job counters.
      • Restored the original single-DataDir configuration and confirmed FE SQL
        connectivity and BE health.
      • Submit rejection, callback exceptions, and remote GC partial failures are
        covered by the BE unit tests rather than live fault injection.
  • Behavior changed: Yes. Enabling enable_data_dir_sweep_worker parallelizes
    path-scoped jobs across DataDirs while preserving phase ordering and
    per-DataDir serialization. Disabling it retains synchronous scheduling only;
    the error-propagation changes listed above still apply.

  • Does this need documentation: No

### What problem does this PR solve?

Issue Number: None

Related PR: apache#68

Problem Summary: Migrate the branch-3.1 shutdown tablet sweep configurability to master. This change adds dynamic round budget and interval configs, refactors shutdown tablet cleanup into round-based sweeping with fallback defaults for invalid runtime values, exposes BE-side backlog and timing metrics, and ports focused BE unit tests to the master tablet manager layout.

### Release note

Support configuring shutdown tablet sweep round budget and interval on master, and expose BE-side sweep observability metrics.

### Check List (For Author)

- Test: Attempted ./run-be-ut.sh --run with TabletMgrTest filters, but the build was blocked by an existing contrib/openblas environment error; also ran ./build-support/clang-format.sh and git diff --check

- Behavior changed: Yes. Shutdown tablet cleanup pacing is dynamically configurable and additional sweep metrics are exposed.

- Does this need documentation: No
@wenzhenghu
wenzhenghu requested a review from gavinchou as a code owner July 16, 2026 08:18
@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?

@wenzhenghu

Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen

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

------ Round 1 ----------------------------------
============================================
q1	17683	4120	4089	4089
q2	2051	329	206	206
q3	10252	1495	813	813
q4	4684	468	351	351
q5	7522	859	572	572
q6	191	182	135	135
q7	780	825	603	603
q8	9331	1599	1653	1599
q9	5648	4428	4417	4417
q10	6696	1769	1492	1492
q11	504	341	315	315
q12	714	581	450	450
q13	18092	3424	2754	2754
q14	268	277	251	251
q15	q16	773	788	703	703
q17	975	1052	1041	1041
q18	7010	5715	5499	5499
q19	1333	1353	968	968
q20	788	691	617	617
q21	6174	2596	2461	2461
q22	438	352	291	291
Total cold run time: 101907 ms
Total hot run time: 29627 ms

----- Round 2, with runtime_filter_mode=off -----
============================================
q1	4360	4293	4289	4289
q2	296	310	209	209
q3	4642	5003	4376	4376
q4	2078	2171	1393	1393
q5	4421	4308	4329	4308
q6	230	173	130	130
q7	1727	2156	1736	1736
q8	2581	2216	2232	2216
q9	8098	8010	7823	7823
q10	4714	4676	4266	4266
q11	558	413	399	399
q12	742	760	558	558
q13	3275	3605	2915	2915
q14	291	293	278	278
q15	q16	710	738	661	661
q17	1365	1393	1506	1393
q18	7839	7458	7290	7290
q19	1154	1114	1092	1092
q20	2222	2205	1950	1950
q21	5278	4524	4412	4412
q22	510	486	408	408
Total cold run time: 57091 ms
Total hot run time: 52102 ms

@hello-stephen

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

query5	4336	628	498	498
query6	465	231	219	219
query7	4861	608	360	360
query8	341	186	169	169
query9	8748	4166	4116	4116
query10	459	360	357	357
query11	5951	2349	2126	2126
query12	163	104	110	104
query13	1280	592	427	427
query14	6238	5253	4980	4980
query14_1	4316	4330	4321	4321
query15	218	214	183	183
query16	1015	470	513	470
query17	922	706	561	561
query18	2433	475	342	342
query19	208	191	144	144
query20	111	109	105	105
query21	234	161	137	137
query22	13612	13489	13279	13279
query23	17275	16531	16110	16110
query23_1	16187	16107	16241	16107
query24	7456	1771	1257	1257
query24_1	1277	1291	1284	1284
query25	539	427	367	367
query26	1345	338	202	202
query27	2634	585	393	393
query28	4502	2038	2007	2007
query29	1060	626	476	476
query30	336	261	225	225
query31	1110	1084	972	972
query32	107	63	60	60
query33	535	325	244	244
query34	1168	1178	652	652
query35	793	794	672	672
query36	1209	1175	1060	1060
query37	160	109	97	97
query38	1892	1739	1646	1646
query39	894	882	855	855
query39_1	839	844	850	844
query40	265	170	148	148
query41	71	69	68	68
query42	103	96	95	95
query43	333	334	288	288
query44	1479	786	770	770
query45	204	194	173	173
query46	1051	1212	741	741
query47	2151	2121	2023	2023
query48	417	431	301	301
query49	589	441	341	341
query50	1078	444	328	328
query51	11070	10995	11030	10995
query52	90	91	83	83
query53	271	291	206	206
query54	307	255	231	231
query55	78	75	70	70
query56	306	297	296	296
query57	1298	1271	1196	1196
query58	303	268	279	268
query59	1588	1642	1436	1436
query60	336	283	274	274
query61	174	172	165	165
query62	545	499	433	433
query63	251	208	218	208
query64	2962	1114	831	831
query65	4733	4610	4632	4610
query66	1877	496	370	370
query67	29662	29308	29167	29167
query68	3180	1511	1040	1040
query69	418	299	275	275
query70	1084	936	975	936
query71	365	354	325	325
query72	3078	2772	2424	2424
query73	836	845	421	421
query74	5075	4956	4767	4767
query75	2544	2504	2133	2133
query76	2310	1219	817	817
query77	359	391	290	290
query78	11900	11895	11294	11294
query79	1369	1177	753	753
query80	1297	546	463	463
query81	535	339	294	294
query82	600	162	124	124
query83	388	325	306	306
query84	321	158	132	132
query85	984	650	526	526
query86	422	294	286	286
query87	1825	1818	1770	1770
query88	3765	2826	2736	2736
query89	445	386	325	325
query90	1904	211	200	200
query91	238	196	163	163
query92	67	57	54	54
query93	1614	1565	978	978
query94	724	363	322	322
query95	794	507	566	507
query96	1077	780	341	341
query97	2632	2635	2494	2494
query98	235	208	199	199
query99	1103	1118	966	966
Total cold run time: 264630 ms
Total hot run time: 178611 ms

@hello-stephen

Copy link
Copy Markdown
Contributor
ClickBench: Total hot run time: 25.08 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit 47ce5a477f1ede8249e0604e4d6ea4ac07bf34eb, data reload: false

query1	0.01	0.00	0.01
query2	0.10	0.08	0.05
query3	0.25	0.14	0.13
query4	1.61	0.14	0.14
query5	0.23	0.22	0.22
query6	1.27	1.06	1.02
query7	0.04	0.01	0.01
query8	0.06	0.04	0.04
query9	0.39	0.31	0.32
query10	0.55	0.58	0.57
query11	0.20	0.14	0.14
query12	0.19	0.14	0.15
query13	0.47	0.49	0.48
query14	1.02	1.01	0.99
query15	0.63	0.60	0.60
query16	0.34	0.33	0.32
query17	1.09	1.11	1.13
query18	0.22	0.20	0.22
query19	1.98	1.99	1.93
query20	0.02	0.01	0.01
query21	15.42	0.18	0.14
query22	4.96	0.05	0.05
query23	16.15	0.30	0.13
query24	2.98	0.42	0.36
query25	0.10	0.05	0.05
query26	0.73	0.22	0.16
query27	0.04	0.05	0.03
query28	3.48	0.90	0.56
query29	12.54	4.15	3.28
query30	0.29	0.16	0.18
query31	2.77	0.60	0.32
query32	3.24	0.61	0.48
query33	3.19	3.12	3.22
query34	15.67	4.23	3.52
query35	3.57	3.51	3.54
query36	0.56	0.43	0.42
query37	0.09	0.07	0.07
query38	0.04	0.04	0.04
query39	0.04	0.03	0.03
query40	0.18	0.18	0.15
query41	0.08	0.03	0.03
query42	0.04	0.03	0.03
query43	0.04	0.03	0.04
Total cold run time: 96.87 s
Total hot run time: 25.08 s

@wenzhenghu

Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen

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

------ Round 1 ----------------------------------
============================================
q1	17705	4062	4039	4039
q2	2001	334	202	202
q3	10297	1414	807	807
q4	4682	476	341	341
q5	7491	856	562	562
q6	181	173	139	139
q7	758	814	620	620
q8	9319	1540	1542	1540
q9	5634	4341	4388	4341
q10	6784	1733	1478	1478
q11	507	346	320	320
q12	705	564	466	466
q13	18107	3442	2798	2798
q14	267	271	253	253
q15	q16	781	772	705	705
q17	951	1003	1010	1003
q18	6813	5763	5604	5604
q19	1162	1269	996	996
q20	798	673	586	586
q21	5773	2597	2573	2573
q22	433	352	293	293
Total cold run time: 101149 ms
Total hot run time: 29666 ms

----- Round 2, with runtime_filter_mode=off -----
============================================
q1	4366	4282	4293	4282
q2	301	321	218	218
q3	4617	4937	4440	4440
q4	2045	2155	1385	1385
q5	4564	4277	4253	4253
q6	230	174	128	128
q7	1733	1649	2047	1649
q8	2584	2236	2217	2217
q9	7946	8131	7680	7680
q10	4638	4648	4199	4199
q11	568	432	390	390
q12	786	754	536	536
q13	3313	3637	2899	2899
q14	319	314	289	289
q15	q16	712	715	630	630
q17	1367	1347	1321	1321
q18	8062	7407	7391	7391
q19	1199	1098	1083	1083
q20	2218	2203	1914	1914
q21	5285	4519	4460	4460
q22	531	469	405	405
Total cold run time: 57384 ms
Total hot run time: 51769 ms

@hello-stephen

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

query5	4355	671	503	503
query6	498	238	235	235
query7	4885	597	345	345
query8	345	195	179	179
query9	8796	4101	4129	4101
query10	483	370	308	308
query11	5946	2302	2135	2135
query12	160	102	103	102
query13	1304	578	426	426
query14	6225	5261	4919	4919
query14_1	4331	4290	4303	4290
query15	226	202	178	178
query16	1020	477	470	470
query17	953	734	586	586
query18	2456	484	346	346
query19	214	196	149	149
query20	110	109	112	109
query21	235	164	145	145
query22	13483	13535	13345	13345
query23	17319	16515	16225	16225
query23_1	16164	16198	16253	16198
query24	7485	1761	1268	1268
query24_1	1289	1298	1281	1281
query25	537	427	362	362
query26	1319	351	210	210
query27	2615	591	379	379
query28	4481	1998	2012	1998
query29	1063	636	483	483
query30	335	267	238	238
query31	1107	1111	978	978
query32	112	62	60	60
query33	512	312	240	240
query34	1164	1116	612	612
query35	758	757	674	674
query36	1199	1228	1061	1061
query37	150	111	92	92
query38	1891	1690	1652	1652
query39	885	886	840	840
query39_1	835	830	821	821
query40	243	166	141	141
query41	66	64	62	62
query42	94	99	91	91
query43	318	328	290	290
query44	1395	782	753	753
query45	192	182	176	176
query46	1068	1200	716	716
query47	2174	2107	1997	1997
query48	403	382	298	298
query49	566	416	303	303
query50	1074	444	350	350
query51	10808	11079	11106	11079
query52	85	84	75	75
query53	266	274	197	197
query54	285	224	223	223
query55	73	70	65	65
query56	309	319	300	300
query57	1299	1299	1202	1202
query58	302	252	252	252
query59	1566	1643	1432	1432
query60	316	272	250	250
query61	150	145	143	143
query62	538	489	436	436
query63	239	202	199	199
query64	2802	1020	867	867
query65	4698	4589	4592	4589
query66	1836	501	400	400
query67	29682	29122	29070	29070
query68	3011	1533	915	915
query69	406	301	269	269
query70	1030	978	888	888
query71	368	329	315	315
query72	3107	2721	2324	2324
query73	841	764	421	421
query74	5043	4956	4714	4714
query75	2519	2498	2132	2132
query76	2361	1199	785	785
query77	350	382	283	283
query78	11888	11854	11379	11379
query79	1224	1104	749	749
query80	643	593	459	459
query81	491	329	289	289
query82	244	161	124	124
query83	321	339	293	293
query84	316	160	128	128
query85	877	606	513	513
query86	318	301	278	278
query87	1824	1822	1745	1745
query88	3678	2778	2756	2756
query89	407	375	326	326
query90	2141	206	190	190
query91	201	188	165	165
query92	64	62	57	57
query93	1565	1473	922	922
query94	544	347	320	320
query95	794	609	494	494
query96	1055	823	359	359
query97	2637	2631	2476	2476
query98	211	205	196	196
query99	1115	1103	977	977
Total cold run time: 262040 ms
Total hot run time: 178110 ms

@hello-stephen

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

query1	0.00	0.00	0.00
query2	0.09	0.05	0.05
query3	0.25	0.14	0.14
query4	1.61	0.14	0.14
query5	0.25	0.22	0.22
query6	1.25	1.02	1.06
query7	0.03	0.01	0.00
query8	0.06	0.04	0.04
query9	0.37	0.31	0.32
query10	0.56	0.55	0.56
query11	0.19	0.13	0.14
query12	0.18	0.15	0.15
query13	0.46	0.47	0.46
query14	1.03	1.00	1.02
query15	0.61	0.59	0.60
query16	0.32	0.34	0.30
query17	1.06	1.08	1.06
query18	0.23	0.21	0.21
query19	2.01	1.96	1.94
query20	0.02	0.02	0.01
query21	15.44	0.22	0.13
query22	4.88	0.06	0.05
query23	16.14	0.31	0.13
query24	2.95	0.43	0.34
query25	0.11	0.05	0.04
query26	0.73	0.21	0.15
query27	0.04	0.04	0.03
query28	3.56	0.91	0.54
query29	12.48	4.05	3.25
query30	0.27	0.15	0.16
query31	2.77	0.59	0.31
query32	3.21	0.60	0.48
query33	3.15	3.25	3.33
query34	15.61	4.23	3.50
query35	3.50	3.54	3.54
query36	0.56	0.46	0.42
query37	0.09	0.07	0.07
query38	0.06	0.04	0.04
query39	0.04	0.03	0.03
query40	0.19	0.17	0.16
query41	0.08	0.03	0.03
query42	0.04	0.03	0.03
query43	0.04	0.04	0.03
Total cold run time: 96.52 s
Total hot run time: 25.02 s

@wenzhenghu

Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen

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

------ Round 1 ----------------------------------
============================================
q1	17595	3922	3904	3904
q2	1996	318	194	194
q3	10303	1418	814	814
q4	4696	464	337	337
q5	7708	851	566	566
q6	210	168	133	133
q7	760	822	605	605
q8	10159	1536	1581	1536
q9	6244	4370	4364	4364
q10	6803	1730	1440	1440
q11	506	367	322	322
q12	777	588	452	452
q13	18124	3338	2752	2752
q14	266	267	249	249
q15	q16	787	779	709	709
q17	970	1017	946	946
q18	6775	5765	5444	5444
q19	1439	1308	1047	1047
q20	779	675	595	595
q21	5915	2615	2389	2389
q22	416	351	296	296
Total cold run time: 103228 ms
Total hot run time: 29094 ms

----- Round 2, with runtime_filter_mode=off -----
============================================
q1	4339	4245	4255	4245
q2	279	317	215	215
q3	4541	4958	4482	4482
q4	2023	2154	1361	1361
q5	4410	4272	4242	4242
q6	223	179	126	126
q7	1709	2037	1665	1665
q8	2450	2157	2084	2084
q9	7785	7683	7803	7683
q10	4631	4610	4191	4191
q11	601	394	376	376
q12	736	761	525	525
q13	3403	3601	2962	2962
q14	297	286	281	281
q15	q16	716	759	623	623
q17	1363	1318	1303	1303
q18	7972	7248	7072	7072
q19	1100	1074	1094	1074
q20	2215	2191	1907	1907
q21	5215	4506	4392	4392
q22	522	468	390	390
Total cold run time: 56530 ms
Total hot run time: 51199 ms

@hello-stephen

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

query5	4318	640	475	475
query6	462	218	206	206
query7	4945	615	347	347
query8	358	193	173	173
query9	8790	4071	4081	4071
query10	495	363	321	321
query11	5903	2308	2133	2133
query12	158	102	99	99
query13	1275	571	444	444
query14	6232	5276	4897	4897
query14_1	4286	4256	4260	4256
query15	206	207	181	181
query16	1031	463	454	454
query17	1124	749	579	579
query18	2460	471	331	331
query19	224	191	151	151
query20	108	105	103	103
query21	232	152	141	141
query22	13606	13554	13259	13259
query23	17543	16390	16170	16170
query23_1	16225	16433	16414	16414
query24	7473	1754	1274	1274
query24_1	1290	1266	1265	1265
query25	529	429	351	351
query26	1345	345	207	207
query27	2604	569	384	384
query28	4459	2012	2012	2012
query29	1072	599	495	495
query30	336	260	230	230
query31	1108	1080	977	977
query32	103	59	58	58
query33	524	310	250	250
query34	1166	1145	628	628
query35	750	794	662	662
query36	1201	1147	1029	1029
query37	152	103	90	90
query38	1888	1705	1645	1645
query39	875	878	836	836
query39_1	827	834	841	834
query40	241	163	182	163
query41	64	62	63	62
query42	92	93	88	88
query43	319	320	277	277
query44	1413	771	760	760
query45	193	205	175	175
query46	1016	1165	742	742
query47	2138	2116	2011	2011
query48	404	395	274	274
query49	571	408	290	290
query50	1107	437	379	379
query51	10906	10982	10830	10830
query52	84	90	74	74
query53	273	297	201	201
query54	276	247	223	223
query55	73	68	66	66
query56	302	296	302	296
query57	1305	1273	1198	1198
query58	286	289	254	254
query59	1567	1663	1396	1396
query60	305	274	250	250
query61	161	155	157	155
query62	536	491	426	426
query63	239	200	199	199
query64	2840	1058	859	859
query65	4736	4665	4645	4645
query66	1820	497	382	382
query67	29223	29144	29031	29031
query68	3275	1586	1035	1035
query69	407	297	259	259
query70	1056	971	955	955
query71	368	333	319	319
query72	3120	2693	2398	2398
query73	834	760	418	418
query74	5044	4941	4711	4711
query75	2538	2484	2111	2111
query76	2328	1174	784	784
query77	345	360	288	288
query78	11896	11765	11262	11262
query79	1235	1178	755	755
query80	592	556	469	469
query81	445	334	299	299
query82	233	161	126	126
query83	318	330	297	297
query84	273	163	127	127
query85	888	602	517	517
query86	315	298	280	280
query87	1822	1825	1756	1756
query88	3682	2780	2748	2748
query89	409	380	326	326
query90	2110	197	192	192
query91	202	191	164	164
query92	60	62	55	55
query93	1622	1498	993	993
query94	539	340	318	318
query95	806	493	578	493
query96	1058	786	348	348
query97	2612	2602	2476	2476
query98	213	203	204	203
query99	1079	1107	981	981
Total cold run time: 262226 ms
Total hot run time: 177720 ms

@hello-stephen

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

query1	0.01	0.01	0.00
query2	0.11	0.05	0.05
query3	0.25	0.14	0.14
query4	1.61	0.14	0.14
query5	0.23	0.22	0.22
query6	1.24	1.08	1.06
query7	0.04	0.01	0.01
query8	0.06	0.03	0.04
query9	0.38	0.31	0.31
query10	0.56	0.54	0.52
query11	0.18	0.13	0.14
query12	0.17	0.14	0.14
query13	0.47	0.47	0.48
query14	1.00	1.02	0.99
query15	0.61	0.60	0.60
query16	0.31	0.33	0.33
query17	1.09	1.09	1.06
query18	0.22	0.22	0.21
query19	2.07	1.92	1.91
query20	0.01	0.01	0.01
query21	15.40	0.22	0.14
query22	4.74	0.06	0.05
query23	16.13	0.30	0.12
query24	2.95	0.41	0.32
query25	0.10	0.05	0.04
query26	0.72	0.21	0.14
query27	0.05	0.03	0.04
query28	3.52	0.90	0.57
query29	12.47	4.18	3.33
query30	0.28	0.15	0.15
query31	2.78	0.59	0.31
query32	3.22	0.60	0.49
query33	3.25	3.16	3.25
query34	15.72	4.23	3.51
query35	3.53	3.52	3.53
query36	0.54	0.43	0.43
query37	0.09	0.07	0.07
query38	0.05	0.04	0.04
query39	0.04	0.03	0.03
query40	0.18	0.17	0.15
query41	0.09	0.04	0.03
query42	0.04	0.03	0.03
query43	0.04	0.04	0.03
Total cold run time: 96.55 s
Total hot run time: 25.02 s

@hello-stephen

Copy link
Copy Markdown
Contributor

BE UT Coverage Report

Increment line coverage 94.96% (113/119) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 57.41% (23929/41680)
Line Coverage 41.13% (235132/571710)
Region Coverage 36.98% (185951/502817)
Branch Coverage 38.11% (83291/218571)

@hello-stephen

Copy link
Copy Markdown
Contributor

BE Regression && UT Coverage Report

Increment line coverage 98.23% (111/113) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 72.58% (29509/40659)
Line Coverage 56.63% (321780/568194)
Region Coverage 53.03% (267627/504717)
Branch Coverage 54.40% (118988/218715)

@wenzhenghu

Copy link
Copy Markdown
Contributor Author

run buildall

@wenzhenghu

Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen

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

------ Round 1 ----------------------------------
============================================
q1	17734	4080	4010	4010
q2	2009	335	220	220
q3	10256	1484	855	855
q4	4717	467	339	339
q5	7650	867	571	571
q6	201	172	139	139
q7	774	814	618	618
q8	10556	1551	1545	1545
q9	6094	4358	4321	4321
q10	6856	1756	1475	1475
q11	526	346	323	323
q12	728	572	446	446
q13	18104	3389	2775	2775
q14	261	252	234	234
q15	q16	785	771	711	711
q17	1024	1070	930	930
q18	6808	5841	5516	5516
q19	1169	1223	1176	1176
q20	800	680	585	585
q21	5637	2629	2398	2398
q22	422	365	301	301
Total cold run time: 103111 ms
Total hot run time: 29488 ms

----- Round 2, with runtime_filter_mode=off -----
============================================
q1	4355	4298	4275	4275
q2	280	312	207	207
q3	4627	4963	4428	4428
q4	2068	2150	1353	1353
q5	4406	4256	4242	4242
q6	227	175	122	122
q7	1742	2047	1657	1657
q8	2484	2175	2086	2086
q9	7772	7914	7779	7779
q10	4656	4646	4171	4171
q11	569	412	526	412
q12	758	753	532	532
q13	3251	3576	2978	2978
q14	313	297	291	291
q15	q16	713	711	648	648
q17	1355	1349	1340	1340
q18	7859	7204	6771	6771
q19	1101	1055	1067	1055
q20	2216	2198	1937	1937
q21	5220	4545	4432	4432
q22	520	439	423	423
Total cold run time: 56492 ms
Total hot run time: 51139 ms

@hello-stephen

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

query5	4320	617	478	478
query6	464	214	199	199
query7	4912	577	333	333
query8	347	186	179	179
query9	8772	4038	4040	4038
query10	470	358	302	302
query11	5927	2290	2129	2129
query12	153	102	102	102
query13	1274	591	451	451
query14	6268	5194	4850	4850
query14_1	4246	4226	4183	4183
query15	216	207	173	173
query16	1023	480	448	448
query17	1093	697	542	542
query18	2602	455	341	341
query19	198	181	138	138
query20	114	104	114	104
query21	233	158	135	135
query22	13650	13429	13341	13341
query23	17358	16440	16115	16115
query23_1	16220	16205	16195	16195
query24	7538	1788	1277	1277
query24_1	1275	1270	1272	1270
query25	530	437	357	357
query26	1340	377	218	218
query27	2552	629	371	371
query28	4442	1992	1975	1975
query29	1079	639	472	472
query30	338	262	235	235
query31	1119	1134	1003	1003
query32	103	66	60	60
query33	555	334	256	256
query34	1195	1135	647	647
query35	771	785	689	689
query36	1201	1212	997	997
query37	155	104	91	91
query38	1874	1712	1662	1662
query39	888	874	830	830
query39_1	840	834	836	834
query40	253	169	146	146
query41	71	69	68	68
query42	95	92	91	91
query43	320	323	278	278
query44	1406	777	759	759
query45	197	186	179	179
query46	1050	1198	710	710
query47	2165	2095	2026	2026
query48	418	431	306	306
query49	591	445	307	307
query50	1047	433	339	339
query51	10671	10539	10890	10539
query52	89	91	75	75
query53	272	284	206	206
query54	294	259	232	232
query55	76	71	65	65
query56	316	337	299	299
query57	1333	1319	1205	1205
query58	269	254	248	248
query59	1576	1623	1365	1365
query60	317	269	249	249
query61	150	141	146	141
query62	543	492	426	426
query63	238	198	203	198
query64	2770	1005	838	838
query65	4750	4651	4593	4593
query66	1813	510	372	372
query67	29302	29311	29117	29117
query68	3238	1454	1009	1009
query69	466	308	263	263
query70	1047	924	928	924
query71	382	342	301	301
query72	2991	2769	2348	2348
query73	844	758	426	426
query74	5067	4908	4713	4713
query75	2543	2524	2130	2130
query76	2354	1157	785	785
query77	348	373	280	280
query78	11765	11934	11372	11372
query79	1374	1151	727	727
query80	663	553	446	446
query81	452	344	289	289
query82	567	159	118	118
query83	407	323	299	299
query84	271	163	130	130
query85	914	597	526	526
query86	362	282	287	282
query87	1826	1808	1770	1770
query88	3685	2750	2720	2720
query89	428	389	327	327
query90	1937	198	200	198
query91	193	185	161	161
query92	64	60	56	56
query93	1602	1488	963	963
query94	535	346	329	329
query95	803	588	474	474
query96	1049	782	368	368
query97	2631	2615	2529	2529
query98	210	207	203	203
query99	1088	1106	964	964
Total cold run time: 262522 ms
Total hot run time: 176813 ms

@hello-stephen

Copy link
Copy Markdown
Contributor
ClickBench: Total hot run time: 24.84 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit 1329d74dbfd29b4ff01609bd91cd44bebdf635ca, data reload: false

query1	0.00	0.00	0.01
query2	0.09	0.05	0.04
query3	0.25	0.14	0.14
query4	1.60	0.14	0.15
query5	0.23	0.22	0.23
query6	1.28	1.06	1.08
query7	0.03	0.00	0.00
query8	0.06	0.04	0.03
query9	0.37	0.30	0.31
query10	0.55	0.57	0.55
query11	0.19	0.14	0.14
query12	0.18	0.14	0.14
query13	0.46	0.46	0.47
query14	1.02	1.01	0.99
query15	0.62	0.58	0.60
query16	0.30	0.32	0.32
query17	1.14	1.12	1.08
query18	0.22	0.20	0.20
query19	2.02	1.89	1.95
query20	0.02	0.01	0.01
query21	15.45	0.21	0.14
query22	4.91	0.05	0.06
query23	16.15	0.30	0.13
query24	2.95	0.41	0.30
query25	0.10	0.06	0.04
query26	0.72	0.20	0.15
query27	0.03	0.04	0.03
query28	3.55	0.87	0.53
query29	12.47	4.11	3.29
query30	0.27	0.16	0.15
query31	2.78	0.58	0.30
query32	3.22	0.59	0.48
query33	3.21	3.16	3.14
query34	15.59	4.19	3.51
query35	3.50	3.54	3.57
query36	0.55	0.42	0.44
query37	0.09	0.07	0.06
query38	0.05	0.03	0.03
query39	0.04	0.03	0.03
query40	0.17	0.16	0.16
query41	0.08	0.03	0.02
query42	0.04	0.03	0.02
query43	0.04	0.04	0.03
Total cold run time: 96.59 s
Total hot run time: 24.84 s

@hello-stephen

Copy link
Copy Markdown
Contributor

BE UT Coverage Report

Increment line coverage 94.96% (113/119) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 57.43% (23935/41679)
Line Coverage 41.18% (235412/571735)
Region Coverage 36.99% (186023/502868)
Branch Coverage 38.16% (83445/218668)

@wenzhenghu

Copy link
Copy Markdown
Contributor Author

run buildall

@wenzhenghu

Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen

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

------ Round 1 ----------------------------------
============================================
q1	17710	4185	4144	4144
q2	2003	323	197	197
q3	10362	1459	847	847
q4	4674	477	337	337
q5	7484	854	564	564
q6	188	171	137	137
q7	746	821	619	619
q8	9347	1728	1735	1728
q9	5716	4375	4384	4375
q10	6759	1780	1478	1478
q11	515	352	333	333
q12	767	582	468	468
q13	18098	3499	2763	2763
q14	261	258	242	242
q15	q16	789	777	710	710
q17	1044	979	1143	979
q18	6930	5797	5488	5488
q19	1168	1197	1158	1158
q20	814	702	579	579
q21	5536	2660	2444	2444
q22	443	353	299	299
Total cold run time: 101354 ms
Total hot run time: 29889 ms

----- Round 2, with runtime_filter_mode=off -----
============================================
q1	4552	4460	4381	4381
q2	299	330	219	219
q3	4606	5001	4424	4424
q4	2057	2128	1360	1360
q5	4436	4246	4308	4246
q6	236	177	127	127
q7	1745	2207	1848	1848
q8	2637	2288	2217	2217
q9	7939	8261	7832	7832
q10	4705	4676	4215	4215
q11	604	430	411	411
q12	787	765	542	542
q13	3329	3653	2950	2950
q14	306	316	279	279
q15	q16	727	734	666	666
q17	1399	1388	1341	1341
q18	7992	7404	7214	7214
q19	1193	1157	1107	1107
q20	2220	2217	1926	1926
q21	5255	4611	4471	4471
q22	533	472	409	409
Total cold run time: 57557 ms
Total hot run time: 52185 ms

@hello-stephen

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

query5	4315	635	474	474
query6	458	224	205	205
query7	4839	615	343	343
query8	333	182	170	170
query9	8797	4082	4079	4079
query10	453	358	309	309
query11	5934	2313	2101	2101
query12	156	98	97	97
query13	1232	637	408	408
query14	6154	5182	4886	4886
query14_1	4230	4548	4192	4192
query15	214	202	174	174
query16	992	466	455	455
query17	929	686	549	549
query18	2447	461	335	335
query19	205	181	146	146
query20	107	107	105	105
query21	235	157	133	133
query22	13508	13720	13345	13345
query23	17404	16553	16153	16153
query23_1	16261	16212	16194	16194
query24	7472	1845	1264	1264
query24_1	1304	1301	1279	1279
query25	590	478	384	384
query26	1349	362	222	222
query27	2606	577	397	397
query28	4529	2019	1995	1995
query29	1070	620	509	509
query30	344	268	232	232
query31	1123	1094	988	988
query32	117	64	61	61
query33	536	326	257	257
query34	1188	1176	655	655
query35	788	791	688	688
query36	1038	1018	862	862
query37	155	115	102	102
query38	1870	1812	1677	1677
query39	892	868	862	862
query39_1	844	833	837	833
query40	250	171	148	148
query41	73	70	69	69
query42	94	93	92	92
query43	333	338	283	283
query44	1440	785	760	760
query45	195	186	173	173
query46	1075	1209	752	752
query47	2096	2107	1968	1968
query48	402	382	288	288
query49	606	420	319	319
query50	1123	443	329	329
query51	10445	10708	10424	10424
query52	86	89	77	77
query53	268	281	216	216
query54	315	269	260	260
query55	83	75	73	73
query56	331	325	311	311
query57	1337	1304	1202	1202
query58	306	278	263	263
query59	1586	1657	1411	1411
query60	330	278	297	278
query61	154	151	141	141
query62	538	501	431	431
query63	241	194	202	194
query64	2790	1044	864	864
query65	4722	4613	4604	4604
query66	1812	511	378	378
query67	29313	29184	29115	29115
query68	3327	1593	936	936
query69	404	308	273	273
query70	945	832	826	826
query71	377	339	324	324
query72	3172	2721	2351	2351
query73	818	793	411	411
query74	5070	4933	4709	4709
query75	2540	2484	2110	2110
query76	2304	1192	755	755
query77	346	377	277	277
query78	11907	11762	11345	11345
query79	1378	1154	769	769
query80	1313	597	474	474
query81	537	329	289	289
query82	1012	160	119	119
query83	415	325	303	303
query84	331	155	132	132
query85	979	598	529	529
query86	464	256	237	237
query87	1843	1807	1737	1737
query88	3705	2772	2751	2751
query89	435	373	332	332
query90	1924	196	188	188
query91	204	190	163	163
query92	63	59	54	54
query93	1683	1556	990	990
query94	753	368	321	321
query95	806	588	464	464
query96	1057	860	352	352
query97	2617	2592	2478	2478
query98	213	208	194	194
query99	1095	1093	983	983
Total cold run time: 263747 ms
Total hot run time: 176864 ms

@hello-stephen

Copy link
Copy Markdown
Contributor
ClickBench: Total hot run time: 25.07 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit 817f495ab944aaceda87d8401cf50100a2ab53fc, data reload: false

query1	0.01	0.01	0.01
query2	0.10	0.05	0.05
query3	0.26	0.14	0.13
query4	1.63	0.14	0.14
query5	0.25	0.23	0.22
query6	1.26	1.08	1.03
query7	0.04	0.01	0.00
query8	0.05	0.04	0.04
query9	0.38	0.30	0.30
query10	0.55	0.53	0.60
query11	0.20	0.14	0.14
query12	0.18	0.14	0.14
query13	0.46	0.47	0.48
query14	1.01	1.01	1.00
query15	0.62	0.59	0.60
query16	0.33	0.34	0.33
query17	1.10	1.10	1.09
query18	0.23	0.21	0.22
query19	2.08	1.98	1.98
query20	0.02	0.02	0.01
query21	15.44	0.23	0.13
query22	4.76	0.05	0.05
query23	16.14	0.32	0.13
query24	2.98	0.42	0.33
query25	0.12	0.06	0.04
query26	0.74	0.19	0.15
query27	0.05	0.03	0.04
query28	3.54	0.90	0.56
query29	12.51	4.05	3.26
query30	0.28	0.16	0.15
query31	2.76	0.62	0.31
query32	3.22	0.59	0.48
query33	3.20	3.18	3.29
query34	15.52	4.24	3.53
query35	3.54	3.53	3.52
query36	0.56	0.42	0.42
query37	0.11	0.06	0.07
query38	0.05	0.04	0.04
query39	0.04	0.03	0.03
query40	0.21	0.17	0.16
query41	0.09	0.03	0.03
query42	0.03	0.03	0.03
query43	0.05	0.04	0.04
Total cold run time: 96.7 s
Total hot run time: 25.07 s

@hello-stephen

Copy link
Copy Markdown
Contributor

BE Regression && UT Coverage Report

Increment line coverage 85.92% (720/838) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 75.34% (31187/41395)
Line Coverage 59.91% (347942/580816)
Region Coverage 56.72% (292931/516463)
Branch Coverage 58.01% (130975/225791)

### What problem does this PR solve?

Issue Number: None

Related PR: None

Problem Summary: Missing remote storage resources can remain absent across garbage sweep epochs. Treating that condition as a generic job failure caused the failed-job counter to grow every epoch even though the GC marker was intentionally retained for retry. Keep missing-resource handling as a warning with backlog retention, while preserving failure propagation for malformed metadata, metadata operations, and remote I/O. Add coverage for the error boundary and for shutdown-tablet dispatch after a worker-owned DataDir becomes unused.

### Release note

Missing remote storage resources no longer mark the DataDir remote GC job as failed; their GC markers remain in the backlog for retry.

### Check List (For Author)

- Test:
    - Static checks: `build-support/clang-format.sh`, `build-support/check-format.sh`, and `git diff --check` passed
    - Unit Test: Not completed locally; `run-be-ut.sh` failed during CMake configuration because the local OpenBLAS probe could not resolve `*_DEFAULT_UNROLL_*` macros. The user will run the targeted BE unit tests manually.
- Behavior changed: Yes. Missing storage resources are warning-only with backlog retention; malformed PB, metadata, and remote I/O errors still fail the job.
- Does this need documentation: No
@wenzhenghu

Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen

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

------ Round 1 ----------------------------------
============================================
q1	17563	4104	4036	4036
q2	2032	323	204	204
q3	10297	1465	845	845
q4	4682	475	338	338
q5	7503	860	575	575
q6	191	172	138	138
q7	784	814	647	647
q8	9396	1652	1710	1652
q9	6126	4400	4379	4379
q10	6832	1746	1486	1486
q11	517	355	318	318
q12	726	584	461	461
q13	18173	3355	2773	2773
q14	267	257	234	234
q15	q16	787	775	706	706
q17	1019	963	989	963
q18	6948	5818	5541	5541
q19	1179	1233	1110	1110
q20	795	673	585	585
q21	5694	2601	2369	2369
q22	418	360	299	299
Total cold run time: 101929 ms
Total hot run time: 29659 ms

----- Round 2, with runtime_filter_mode=off -----
============================================
q1	4408	4360	4325	4325
q2	285	308	208	208
q3	4637	4967	4442	4442
q4	2081	2153	1338	1338
q5	4373	4240	4267	4240
q6	225	175	129	129
q7	1713	1973	1852	1852
q8	2563	2183	2190	2183
q9	8037	8184	7754	7754
q10	4698	4664	4269	4269
q11	585	415	386	386
q12	745	784	541	541
q13	3224	3608	2904	2904
q14	293	311	279	279
q15	q16	717	752	643	643
q17	1361	1343	1343	1343
q18	8088	7317	7355	7317
q19	1190	1108	1093	1093
q20	2210	2218	1937	1937
q21	5229	4533	4475	4475
q22	515	455	387	387
Total cold run time: 57177 ms
Total hot run time: 52045 ms

@hello-stephen

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

query5	4327	626	481	481
query6	460	222	211	211
query7	4863	597	334	334
query8	338	182	165	165
query9	8780	4042	4060	4042
query10	479	357	302	302
query11	5868	2362	2089	2089
query12	163	104	113	104
query13	1293	590	422	422
query14	6264	5215	4842	4842
query14_1	4254	4230	4219	4219
query15	216	206	176	176
query16	1063	476	437	437
query17	940	704	588	588
query18	2458	469	350	350
query19	213	194	154	154
query20	112	109	106	106
query21	240	158	138	138
query22	13463	13494	13269	13269
query23	17341	16478	16153	16153
query23_1	16233	16197	16098	16098
query24	7518	1760	1255	1255
query24_1	1293	1307	1283	1283
query25	559	471	396	396
query26	1332	356	208	208
query27	2622	623	377	377
query28	4517	1998	1959	1959
query29	1092	649	499	499
query30	346	266	229	229
query31	1121	1094	979	979
query32	117	65	61	61
query33	533	326	262	262
query34	1182	1117	643	643
query35	829	791	695	695
query36	1057	1065	875	875
query37	167	111	92	92
query38	1888	1716	1645	1645
query39	868	877	843	843
query39_1	826	836	850	836
query40	247	160	142	142
query41	63	61	65	61
query42	94	91	92	91
query43	326	324	278	278
query44	1411	757	762	757
query45	192	176	170	170
query46	1048	1210	760	760
query47	2163	2094	2009	2009
query48	406	430	324	324
query49	574	430	300	300
query50	1065	441	343	343
query51	10414	10463	10511	10463
query52	86	86	73	73
query53	256	268	197	197
query54	275	234	226	226
query55	73	69	65	65
query56	300	280	283	280
query57	1352	1304	1222	1222
query58	309	269	234	234
query59	1547	1663	1410	1410
query60	310	268	277	268
query61	158	149	146	146
query62	540	495	433	433
query63	248	205	215	205
query64	2864	1021	885	885
query65	4699	4588	4645	4588
query66	1832	494	390	390
query67	29178	29036	29056	29036
query68	3209	1614	967	967
query69	411	310	274	274
query70	912	807	814	807
query71	354	348	318	318
query72	3059	2938	2413	2413
query73	821	765	401	401
query74	5057	4946	4678	4678
query75	2538	2492	2128	2128
query76	2324	1158	771	771
query77	354	390	267	267
query78	11903	11843	11444	11444
query79	1422	1164	750	750
query80	879	559	465	465
query81	518	340	299	299
query82	777	158	121	121
query83	390	327	295	295
query84	329	161	130	130
query85	993	617	540	540
query86	390	239	246	239
query87	1822	1817	1764	1764
query88	3664	2795	2739	2739
query89	432	382	327	327
query90	1841	202	191	191
query91	204	186	158	158
query92	62	56	55	55
query93	1588	1514	1038	1038
query94	626	359	313	313
query95	809	601	479	479
query96	1078	844	337	337
query97	2621	2582	2514	2514
query98	209	205	201	201
query99	1092	1111	980	980
Total cold run time: 262083 ms
Total hot run time: 176941 ms

@hello-stephen

Copy link
Copy Markdown
Contributor
ClickBench: Total hot run time: 24.88 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit 6550e1c3dd0824be2c777962b945029d36471586, data reload: false

query1	0.00	0.00	0.01
query2	0.09	0.04	0.05
query3	0.25	0.14	0.13
query4	1.62	0.13	0.14
query5	0.24	0.22	0.22
query6	1.25	1.05	1.05
query7	0.04	0.01	0.01
query8	0.05	0.04	0.03
query9	0.37	0.30	0.30
query10	0.55	0.56	0.54
query11	0.19	0.13	0.14
query12	0.18	0.15	0.13
query13	0.45	0.46	0.47
query14	1.02	1.02	1.01
query15	0.62	0.58	0.58
query16	0.31	0.33	0.32
query17	1.03	1.11	1.06
query18	0.22	0.20	0.21
query19	2.02	1.89	1.90
query20	0.01	0.01	0.01
query21	15.44	0.23	0.13
query22	4.80	0.05	0.05
query23	16.10	0.30	0.12
query24	2.95	0.43	0.34
query25	0.11	0.06	0.05
query26	0.73	0.20	0.16
query27	0.04	0.04	0.03
query28	3.54	0.92	0.55
query29	12.49	4.04	3.28
query30	0.27	0.14	0.15
query31	2.77	0.61	0.31
query32	3.23	0.58	0.48
query33	3.21	3.20	3.18
query34	15.59	4.25	3.50
query35	3.56	3.56	3.53
query36	0.54	0.44	0.42
query37	0.09	0.06	0.07
query38	0.05	0.04	0.04
query39	0.04	0.03	0.03
query40	0.18	0.16	0.15
query41	0.08	0.03	0.03
query42	0.04	0.03	0.03
query43	0.05	0.04	0.03
Total cold run time: 96.41 s
Total hot run time: 24.88 s

### What problem does this PR solve?

Issue Number: None

Related PR: apache#65699

Problem Summary: StorageEngineTest.TestBrokenDisk defined a mutable string config inside the test body. The config registry retained the address of that stack object after the test returned, so a later broken-disk health check accessed freed stack storage and triggered an AddressSanitizer stack-use-after-return failure. Use the process-lifetime config::broken_storage_path registration and restore its original value after the test.

### Release note

None

### Check List (For Author)

- Test:
    - Static checks: `build-support/clang-format.sh`, `build-support/check-format.sh`, and `git diff --check` passed
    - Unit Test: Pending manual execution by the user
- Behavior changed: No
- Does this need documentation: No
@wenzhenghu

Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen

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

------ Round 1 ----------------------------------
============================================
q1	17632	4042	4028	4028
q2	2005	335	202	202
q3	10271	1431	820	820
q4	4678	479	333	333
q5	7507	883	558	558
q6	186	172	137	137
q7	746	812	596	596
q8	9311	1653	1562	1562
q9	5614	4324	4310	4310
q10	6760	1734	1486	1486
q11	509	386	331	331
q12	718	589	448	448
q13	18102	3426	2746	2746
q14	262	257	246	246
q15	q16	788	782	708	708
q17	1038	1047	1077	1047
q18	6890	5789	5434	5434
q19	1372	1366	1106	1106
q20	792	668	566	566
q21	5921	2556	2476	2476
q22	428	357	293	293
Total cold run time: 101530 ms
Total hot run time: 29433 ms

----- Round 2, with runtime_filter_mode=off -----
============================================
q1	4383	4298	4388	4298
q2	284	315	214	214
q3	4568	4955	4367	4367
q4	2023	2152	1349	1349
q5	4363	4248	4235	4235
q6	225	180	128	128
q7	1749	1607	2001	1607
q8	2596	2195	2185	2185
q9	7970	8297	7671	7671
q10	4681	4618	4193	4193
q11	561	415	393	393
q12	779	774	543	543
q13	3295	3620	2965	2965
q14	313	309	277	277
q15	q16	714	739	638	638
q17	1357	1330	1328	1328
q18	7898	7286	7224	7224
q19	1172	1125	1079	1079
q20	2205	2207	1935	1935
q21	5254	4564	4424	4424
q22	532	445	405	405
Total cold run time: 56922 ms
Total hot run time: 51458 ms

@hello-stephen

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

query5	4316	632	483	483
query6	465	225	227	225
query7	4847	610	340	340
query8	357	184	178	178
query9	8783	3963	4040	3963
query10	500	371	296	296
query11	5883	2338	2130	2130
query12	168	110	109	109
query13	1277	623	448	448
query14	6244	5169	4867	4867
query14_1	4200	4198	4207	4198
query15	218	212	180	180
query16	1037	481	476	476
query17	1099	694	547	547
query18	2427	481	336	336
query19	203	194	147	147
query20	109	106	112	106
query21	244	155	130	130
query22	13516	13517	13393	13393
query23	17388	16473	15995	15995
query23_1	16158	16122	16162	16122
query24	7468	1755	1290	1290
query24_1	1289	1261	1290	1261
query25	530	420	358	358
query26	1336	354	209	209
query27	2590	621	380	380
query28	4454	2028	2004	2004
query29	1050	627	474	474
query30	336	266	234	234
query31	1111	1083	980	980
query32	109	61	66	61
query33	522	325	255	255
query34	1173	1118	645	645
query35	795	776	676	676
query36	1029	1033	890	890
query37	161	109	90	90
query38	1871	1703	1645	1645
query39	906	865	847	847
query39_1	845	819	848	819
query40	264	171	145	145
query41	71	68	70	68
query42	96	94	92	92
query43	323	329	277	277
query44	1434	797	774	774
query45	200	184	178	178
query46	1132	1225	746	746
query47	2139	2119	1997	1997
query48	451	401	295	295
query49	596	441	319	319
query50	1055	426	337	337
query51	10788	10522	10578	10522
query52	90	93	77	77
query53	264	291	202	202
query54	304	241	231	231
query55	77	73	68	68
query56	306	310	300	300
query57	1331	1311	1230	1230
query58	326	275	251	251
query59	1531	1618	1392	1392
query60	298	270	261	261
query61	149	146	145	145
query62	540	489	430	430
query63	241	203	202	202
query64	2805	1036	818	818
query65	4702	4610	4587	4587
query66	1823	505	416	416
query67	29224	29163	29075	29075
query68	3269	1520	986	986
query69	419	292	272	272
query70	920	826	814	814
query71	347	323	311	311
query72	3081	2441	2432	2432
query73	880	774	460	460
query74	5061	4911	4716	4716
query75	2559	2503	2155	2155
query76	2324	1176	800	800
query77	351	387	281	281
query78	11863	11743	11197	11197
query79	1403	1217	778	778
query80	752	565	458	458
query81	493	333	289	289
query82	558	156	118	118
query83	405	325	294	294
query84	279	158	131	131
query85	977	605	511	511
query86	358	251	234	234
query87	1816	1807	1756	1756
query88	3768	2821	2842	2821
query89	434	376	335	335
query90	1803	197	198	197
query91	199	186	163	163
query92	61	59	55	55
query93	1576	1560	959	959
query94	633	368	298	298
query95	768	489	490	489
query96	1130	841	332	332
query97	2644	2636	2483	2483
query98	223	206	200	200
query99	1075	1118	958	958
Total cold run time: 262307 ms
Total hot run time: 176770 ms

@hello-stephen

Copy link
Copy Markdown
Contributor
ClickBench: Total hot run time: 24.98 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit 15ec4a8136d5d4eda00de083d338d3f78392b75e, data reload: false

query1	0.01	0.00	0.01
query2	0.10	0.05	0.04
query3	0.25	0.14	0.13
query4	1.61	0.14	0.13
query5	0.23	0.23	0.21
query6	1.22	1.07	1.11
query7	0.04	0.01	0.00
query8	0.05	0.03	0.04
query9	0.38	0.32	0.32
query10	0.54	0.56	0.56
query11	0.19	0.14	0.14
query12	0.18	0.15	0.14
query13	0.46	0.47	0.48
query14	1.02	1.03	0.99
query15	0.62	0.59	0.59
query16	0.31	0.31	0.32
query17	1.05	1.10	1.11
query18	0.22	0.20	0.21
query19	2.06	1.92	1.97
query20	0.02	0.01	0.01
query21	15.43	0.22	0.13
query22	4.87	0.05	0.05
query23	16.14	0.31	0.12
query24	2.98	0.42	0.34
query25	0.12	0.05	0.03
query26	0.74	0.20	0.16
query27	0.05	0.04	0.03
query28	3.55	0.95	0.52
query29	12.53	4.17	3.28
query30	0.28	0.16	0.15
query31	2.77	0.61	0.31
query32	3.23	0.59	0.48
query33	3.19	3.22	3.17
query34	15.53	4.20	3.50
query35	3.50	3.53	3.52
query36	0.56	0.44	0.45
query37	0.08	0.07	0.07
query38	0.06	0.04	0.04
query39	0.04	0.03	0.03
query40	0.18	0.16	0.15
query41	0.09	0.03	0.03
query42	0.04	0.03	0.04
query43	0.04	0.04	0.04
Total cold run time: 96.56 s
Total hot run time: 24.98 s

### What problem does this PR solve?

Issue Number: None

Related PR: apache#65699

Problem Summary: The BE unit-test config suite clears the shared config registry. TestBrokenDisk previously restored the broken_storage_path entry through a stack-backed DEFINE_mString, which allowed persistence assertions to run but caused an AddressSanitizer stack-use-after-return. After removing that unsafe definition, the field was no longer registered and be_custom.conf was not generated. Re-register the field with process-lifetime config::broken_storage_path storage so both the registry and object lifetime remain valid.

### Release note

None

### Check List (For Author)

- Test:
    - Static checks: `build-support/clang-format.sh`, `build-support/check-format.sh`, and `git diff --check` passed
    - Unit Test: Pending CI and manual execution
- Behavior changed: No
- Does this need documentation: No
@wenzhenghu

Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen

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

------ Round 1 ----------------------------------
============================================
q1	17698	4187	4125	4125
q2	2032	330	203	203
q3	10516	1444	844	844
q4	4735	476	348	348
q5	8017	867	590	590
q6	279	181	144	144
q7	810	817	614	614
q8	10605	1460	1603	1460
q9	5839	4374	4398	4374
q10	6811	1778	1463	1463
q11	509	352	322	322
q12	746	588	462	462
q13	18082	3376	2779	2779
q14	261	258	243	243
q15	q16	788	772	708	708
q17	1052	901	1033	901
q18	6954	5677	5490	5490
q19	1248	1234	1104	1104
q20	810	703	593	593
q21	5543	2616	2434	2434
q22	436	365	314	314
Total cold run time: 103771 ms
Total hot run time: 29515 ms

----- Round 2, with runtime_filter_mode=off -----
============================================
q1	4510	4452	4340	4340
q2	287	313	207	207
q3	4602	4972	4433	4433
q4	2083	2161	1362	1362
q5	4437	4293	4301	4293
q6	238	187	134	134
q7	1729	1674	1448	1448
q8	2277	2024	2027	2024
q9	7260	7223	7213	7213
q10	4633	4616	4149	4149
q11	539	411	407	407
q12	747	760	529	529
q13	3071	3422	2764	2764
q14	294	279	273	273
q15	q16	683	716	617	617
q17	1299	1277	1273	1273
q18	7265	6855	6797	6797
q19	1102	1107	1115	1107
q20	2220	2296	1930	1930
q21	5302	4579	4403	4403
q22	519	480	416	416
Total cold run time: 55097 ms
Total hot run time: 50119 ms

@hello-stephen

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

query5	4325	645	485	485
query6	477	236	198	198
query7	4831	601	329	329
query8	338	188	177	177
query9	8768	4184	4168	4168
query10	455	361	331	331
query11	5868	2359	2147	2147
query12	154	108	101	101
query13	1280	606	458	458
query14	7032	5197	4878	4878
query14_1	4258	4225	4233	4225
query15	214	210	180	180
query16	1048	487	496	487
query17	1284	725	592	592
query18	2731	492	353	353
query19	273	206	156	156
query20	117	110	108	108
query21	234	155	141	141
query22	13672	13622	13470	13470
query23	17473	16424	16133	16133
query23_1	16280	16302	16224	16224
query24	7492	1767	1297	1297
query24_1	1336	1310	1311	1310
query25	575	484	393	393
query26	1359	342	218	218
query27	2474	644	401	401
query28	4393	2049	2069	2049
query29	1084	619	506	506
query30	347	264	230	230
query31	1125	1093	980	980
query32	111	65	63	63
query33	523	338	260	260
query34	1162	1260	639	639
query35	793	794	671	671
query36	1038	1015	887	887
query37	163	119	91	91
query38	1881	1719	1668	1668
query39	879	906	850	850
query39_1	842	845	846	845
query40	249	177	154	154
query41	107	63	63	63
query42	94	93	92	92
query43	324	334	290	290
query44	1416	817	760	760
query45	199	202	182	182
query46	1059	1180	714	714
query47	2143	2091	1978	1978
query48	425	402	310	310
query49	595	424	311	311
query50	1121	428	326	326
query51	10644	10800	10329	10329
query52	86	93	74	74
query53	267	291	213	213
query54	283	220	228	220
query55	75	72	71	71
query56	289	291	294	291
query57	1328	1294	1184	1184
query58	302	257	252	252
query59	1593	1618	1472	1472
query60	303	273	256	256
query61	151	145	150	145
query62	543	493	431	431
query63	255	201	200	200
query64	2752	1037	903	903
query65	4691	4677	4658	4658
query66	1780	503	403	403
query67	29377	29241	29111	29111
query68	3009	1606	944	944
query69	411	306	273	273
query70	912	824	824	824
query71	383	354	316	316
query72	3017	2272	2367	2272
query73	844	799	437	437
query74	5073	4921	4810	4810
query75	2513	2485	2135	2135
query76	2309	1185	784	784
query77	354	380	299	299
query78	12218	12008	11306	11306
query79	1423	1144	796	796
query80	1307	541	482	482
query81	556	327	283	283
query82	650	155	121	121
query83	396	348	301	301
query84	274	160	132	132
query85	961	594	513	513
query86	404	262	231	231
query87	1834	1820	1750	1750
query88	3774	2837	2814	2814
query89	448	372	360	360
query90	1949	210	197	197
query91	204	189	162	162
query92	66	61	56	56
query93	1699	1584	933	933
query94	715	347	313	313
query95	789	525	471	471
query96	1087	808	350	350
query97	2625	2668	2486	2486
query98	215	209	203	203
query99	1116	1111	1002	1002
Total cold run time: 264674 ms
Total hot run time: 177849 ms

@hello-stephen

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

query1	0.01	0.01	0.01
query2	0.09	0.05	0.05
query3	0.26	0.13	0.15
query4	1.60	0.14	0.13
query5	0.25	0.24	0.22
query6	1.16	0.80	0.82
query7	0.03	0.01	0.00
query8	0.06	0.04	0.04
query9	0.37	0.33	0.31
query10	0.56	0.56	0.54
query11	0.18	0.13	0.14
query12	0.18	0.14	0.14
query13	0.47	0.48	0.48
query14	1.01	1.00	1.02
query15	0.63	0.59	0.60
query16	0.36	0.33	0.31
query17	1.06	1.10	1.09
query18	0.23	0.20	0.21
query19	2.09	1.98	1.99
query20	0.02	0.01	0.01
query21	15.44	0.20	0.14
query22	4.97	0.06	0.05
query23	16.10	0.31	0.13
query24	2.92	0.45	0.32
query25	0.10	0.06	0.04
query26	0.75	0.21	0.15
query27	0.04	0.04	0.04
query28	3.48	0.89	0.53
query29	12.50	4.18	3.32
query30	0.28	0.15	0.15
query31	2.77	0.59	0.31
query32	3.23	0.59	0.50
query33	3.16	3.23	3.18
query34	15.54	4.26	3.57
query35	3.52	3.53	3.56
query36	0.54	0.44	0.43
query37	0.09	0.07	0.06
query38	0.05	0.04	0.04
query39	0.03	0.03	0.03
query40	0.19	0.17	0.15
query41	0.08	0.03	0.03
query42	0.03	0.02	0.02
query43	0.04	0.04	0.03
Total cold run time: 96.47 s
Total hot run time: 24.91 s

@hello-stephen

Copy link
Copy Markdown
Contributor

BE UT Coverage Report

Increment line coverage 85.55% (722/844) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 59.17% (25636/43326)
Line Coverage 43.30% (257608/594956)
Region Coverage 38.97% (204110/523719)
Branch Coverage 40.26% (92905/230789)

@hello-stephen

Copy link
Copy Markdown
Contributor

BE Regression && UT Coverage Report

Increment line coverage 87.35% (732/838) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 74.33% (31411/42260)
Line Coverage 58.56% (346106/590983)
Region Coverage 54.83% (288098/525474)
Branch Coverage 55.78% (128765/230843)

@wenzhenghu
wenzhenghu marked this pull request as ready for review July 30, 2026 10:11
@wenzhenghu
wenzhenghu requested a review from yiguolei as a code owner July 30, 2026 10:11
@wenzhenghu
wenzhenghu marked this pull request as draft July 30, 2026 12:03
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.

2 participants