Skip to content

Conversation

@hust-hhb
Copy link
Contributor

What problem does this PR solve?

When trigger cu or base compaciton with full compaction in the same time, compaciton may abort fail, delete bitmap lock will hold by the failed compaciton, in this situation, need to release delete bitmap lock.

Issue Number: close #xxx

Related PR: #xxx

Problem Summary:

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 Feb 11, 2025

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?

@hust-hhb
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17631	5191	5065	5065
q2	2045	306	180	180
q3	10388	1298	692	692
q4	10217	1031	537	537
q5	7543	2404	2334	2334
q6	187	166	133	133
q7	911	745	605	605
q8	9296	1289	1095	1095
q9	4838	4741	4642	4642
q10	6839	2299	1872	1872
q11	491	268	262	262
q12	349	349	215	215
q13	17760	3663	3119	3119
q14	223	218	213	213
q15	513	455	464	455
q16	611	616	574	574
q17	572	861	334	334
q18	7082	6151	6213	6151
q19	1140	963	539	539
q20	309	331	189	189
q21	2781	2159	1903	1903
q22	355	330	311	311
Total cold run time: 102081 ms
Total hot run time: 31420 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5151	5077	5075	5075
q2	231	329	228	228
q3	2191	2650	2286	2286
q4	1422	1839	1405	1405
q5	4237	4113	4139	4113
q6	202	160	123	123
q7	1866	1842	1678	1678
q8	2584	2665	2559	2559
q9	7258	7156	7063	7063
q10	2996	3173	2737	2737
q11	565	496	480	480
q12	687	744	603	603
q13	3554	3887	3320	3320
q14	279	295	263	263
q15	515	461	474	461
q16	642	690	636	636
q17	1111	1641	1350	1350
q18	7606	7203	7271	7203
q19	778	759	835	759
q20	1956	2001	1826	1826
q21	5342	4928	4874	4874
q22	618	558	539	539
Total cold run time: 51791 ms
Total hot run time: 49581 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 184540 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 00c9e9d94fcb822ab584d1aa55e4c9745e030915, data reload: false

query1	991	390	377	377
query2	6540	1925	1951	1925
query3	6793	219	211	211
query4	26271	23803	23263	23263
query5	4709	707	514	514
query6	309	217	207	207
query7	4612	516	310	310
query8	280	259	216	216
query9	8643	2502	2489	2489
query10	441	318	247	247
query11	16121	15181	15016	15016
query12	171	104	105	104
query13	1683	525	407	407
query14	10228	7112	6099	6099
query15	219	193	169	169
query16	7690	661	486	486
query17	1577	757	582	582
query18	2007	413	308	308
query19	226	193	162	162
query20	122	120	121	120
query21	218	126	108	108
query22	4100	4355	4413	4355
query23	34472	33294	33005	33005
query24	7209	2420	2385	2385
query25	490	453	373	373
query26	1223	289	155	155
query27	1980	532	326	326
query28	3862	2373	2374	2373
query29	707	564	417	417
query30	237	201	157	157
query31	957	861	811	811
query32	73	64	64	64
query33	548	371	336	336
query34	798	935	498	498
query35	814	839	741	741
query36	982	1012	899	899
query37	124	104	79	79
query38	4207	4168	4168	4168
query39	1490	1408	1425	1408
query40	209	118	108	108
query41	51	49	53	49
query42	125	106	106	106
query43	530	529	492	492
query44	1327	786	784	784
query45	175	168	157	157
query46	910	1094	650	650
query47	1725	1787	1700	1700
query48	379	436	318	318
query49	770	520	407	407
query50	743	792	411	411
query51	4292	4243	4118	4118
query52	112	110	93	93
query53	226	265	191	191
query54	494	481	410	410
query55	86	81	80	80
query56	268	270	268	268
query57	1130	1165	1069	1069
query58	239	231	251	231
query59	2652	2820	2687	2687
query60	287	266	263	263
query61	122	113	118	113
query62	814	727	680	680
query63	222	190	182	182
query64	4164	993	647	647
query65	3315	3203	3212	3203
query66	1053	417	292	292
query67	15790	15591	15375	15375
query68	6881	770	508	508
query69	461	320	284	284
query70	1203	1112	1107	1107
query71	404	303	268	268
query72	5235	3696	3886	3696
query73	739	767	356	356
query74	9025	9124	8880	8880
query75	3315	3193	2744	2744
query76	3263	1271	770	770
query77	472	386	292	292
query78	10573	10541	9671	9671
query79	1937	892	588	588
query80	672	549	453	453
query81	508	283	249	249
query82	259	164	119	119
query83	170	175	153	153
query84	252	101	70	70
query85	769	425	302	302
query86	375	321	277	277
query87	4443	4693	4405	4405
query88	2946	2225	2195	2195
query89	408	322	280	280
query90	1903	195	194	194
query91	137	154	108	108
query92	75	62	58	58
query93	1655	1055	569	569
query94	686	434	289	289
query95	355	270	256	256
query96	490	598	269	269
query97	2853	2861	2734	2734
query98	229	209	196	196
query99	1328	1420	1246	1246
Total cold run time: 270355 ms
Total hot run time: 184540 ms

@doris-robot
Copy link

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

query1	0.03	0.03	0.03
query2	0.07	0.03	0.03
query3	0.24	0.06	0.07
query4	1.61	0.10	0.10
query5	0.42	0.43	0.40
query6	1.17	0.67	0.66
query7	0.02	0.01	0.02
query8	0.04	0.03	0.03
query9	0.60	0.51	0.52
query10	0.56	0.57	0.56
query11	0.15	0.11	0.11
query12	0.15	0.11	0.11
query13	0.61	0.60	0.60
query14	2.74	2.70	2.79
query15	0.93	0.85	0.84
query16	0.36	0.38	0.37
query17	1.04	1.06	1.06
query18	0.21	0.18	0.19
query19	1.87	1.79	2.04
query20	0.01	0.01	0.02
query21	15.35	0.88	0.56
query22	0.74	1.13	0.60
query23	15.04	1.38	0.60
query24	7.25	1.50	0.33
query25	0.31	0.07	0.10
query26	0.71	0.17	0.13
query27	0.06	0.05	0.05
query28	8.75	0.91	0.43
query29	12.55	3.94	3.29
query30	0.24	0.08	0.06
query31	2.84	0.60	0.38
query32	3.22	0.54	0.47
query33	2.97	3.16	3.00
query34	15.74	5.11	4.50
query35	4.55	4.49	4.54
query36	0.66	0.48	0.48
query37	0.09	0.06	0.06
query38	0.05	0.04	0.03
query39	0.03	0.02	0.03
query40	0.17	0.13	0.13
query41	0.08	0.02	0.02
query42	0.04	0.03	0.02
query43	0.04	0.03	0.03
Total cold run time: 104.31 s
Total hot run time: 29.91 s

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 42.80% (11263/26316)
Line Coverage: 32.77% (94583/288598)
Region Coverage: 31.94% (48491/151841)
Branch Coverage: 27.81% (24455/87944)
Coverage Report: http://coverage.selectdb-in.cc/coverage/00c9e9d94fcb822ab584d1aa55e4c9745e030915_00c9e9d94fcb822ab584d1aa55e4c9745e030915/report/index.html

@hust-hhb hust-hhb requested a review from w41ter as a code owner February 11, 2025 10:56
@hust-hhb
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

TeamCity cloud ut coverage result:
Function Coverage: 82.38% (1061/1288)
Line Coverage: 65.82% (17553/26670)
Region Coverage: 65.34% (8656/13248)
Branch Coverage: 55.20% (4664/8450)
Coverage Report: http://coverage.selectdb-in.cc/coverage/883f55352679e9335c5712a09a717baeef1256a7_883f55352679e9335c5712a09a717baeef1256a7_cloud/report/index.html

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17592	5069	5263	5069
q2	2046	296	165	165
q3	10500	1244	766	766
q4	10468	993	532	532
q5	7520	2345	2352	2345
q6	181	168	133	133
q7	908	744	595	595
q8	10024	1307	1085	1085
q9	4954	4662	4587	4587
q10	6803	2301	1879	1879
q11	487	275	259	259
q12	343	356	221	221
q13	17821	3749	3209	3209
q14	233	236	203	203
q15	529	490	468	468
q16	620	622	582	582
q17	559	872	333	333
q18	6775	6202	6195	6195
q19	1408	948	560	560
q20	324	319	200	200
q21	2686	2237	1938	1938
q22	362	321	305	305
Total cold run time: 103143 ms
Total hot run time: 31629 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5139	5136	5186	5136
q2	245	346	231	231
q3	2275	2774	2343	2343
q4	1458	1911	1469	1469
q5	4490	4402	4417	4402
q6	204	163	132	132
q7	1928	1940	1843	1843
q8	2680	2650	2635	2635
q9	7583	7447	7140	7140
q10	3038	3231	2793	2793
q11	583	505	494	494
q12	696	788	649	649
q13	3394	3872	3284	3284
q14	279	311	271	271
q15	512	474	469	469
q16	662	671	633	633
q17	1161	1533	1367	1367
q18	7531	7264	7278	7264
q19	818	821	883	821
q20	2007	2021	1867	1867
q21	5461	4937	4752	4752
q22	647	556	531	531
Total cold run time: 52791 ms
Total hot run time: 50526 ms

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 42.80% (11263/26316)
Line Coverage: 32.77% (94591/288614)
Region Coverage: 31.94% (48500/151849)
Branch Coverage: 27.81% (24458/87950)
Coverage Report: http://coverage.selectdb-in.cc/coverage/883f55352679e9335c5712a09a717baeef1256a7_883f55352679e9335c5712a09a717baeef1256a7/report/index.html

@doris-robot
Copy link

TPC-DS: Total hot run time: 189201 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 883f55352679e9335c5712a09a717baeef1256a7, data reload: false

query1	1295	975	938	938
query2	6439	1947	1917	1917
query3	11044	4621	4546	4546
query4	53147	25697	23142	23142
query5	5103	601	491	491
query6	331	212	192	192
query7	4875	512	290	290
query8	301	254	228	228
query9	5345	2540	2549	2540
query10	413	317	249	249
query11	15130	15010	14758	14758
query12	156	106	108	106
query13	1027	509	386	386
query14	10003	6244	6212	6212
query15	202	195	177	177
query16	7063	632	493	493
query17	1064	711	537	537
query18	1521	405	300	300
query19	193	182	170	170
query20	129	126	122	122
query21	215	125	103	103
query22	4466	4424	4363	4363
query23	34081	33251	33454	33251
query24	6593	2456	2434	2434
query25	452	459	412	412
query26	685	291	153	153
query27	2095	506	342	342
query28	2905	2432	2408	2408
query29	580	549	423	423
query30	207	183	156	156
query31	886	861	791	791
query32	96	61	64	61
query33	458	344	298	298
query34	972	855	522	522
query35	772	816	773	773
query36	993	983	909	909
query37	132	99	82	82
query38	4423	4333	4196	4196
query39	1494	1476	1433	1433
query40	213	115	102	102
query41	51	50	47	47
query42	121	106	108	106
query43	518	542	489	489
query44	1315	807	821	807
query45	176	169	167	167
query46	891	1079	646	646
query47	1821	1912	1797	1797
query48	384	410	313	313
query49	664	495	425	425
query50	710	768	415	415
query51	4233	4236	4199	4199
query52	106	113	98	98
query53	242	266	188	188
query54	486	498	404	404
query55	80	93	89	89
query56	262	286	258	258
query57	1160	1203	1123	1123
query58	244	240	236	236
query59	2921	2855	2864	2855
query60	284	292	269	269
query61	147	137	137	137
query62	734	755	662	662
query63	230	190	196	190
query64	1892	998	683	683
query65	3270	3156	3138	3138
query66	717	395	298	298
query67	15579	15409	15331	15331
query68	5561	763	487	487
query69	529	293	260	260
query70	1183	1146	1111	1111
query71	421	294	259	259
query72	5269	3585	3827	3585
query73	1387	726	360	360
query74	8945	9079	8943	8943
query75	3190	3148	2657	2657
query76	3869	1174	742	742
query77	512	374	277	277
query78	9964	10043	9226	9226
query79	2016	802	583	583
query80	651	530	426	426
query81	482	275	240	240
query82	212	145	120	120
query83	178	173	150	150
query84	284	85	72	72
query85	725	347	289	289
query86	341	314	289	289
query87	4468	4560	4330	4330
query88	2924	2217	2187	2187
query89	395	306	284	284
query90	1685	193	190	190
query91	133	140	106	106
query92	65	59	54	54
query93	1980	1002	564	564
query94	691	400	297	297
query95	333	265	246	246
query96	483	556	268	268
query97	2758	2892	2759	2759
query98	229	202	198	198
query99	1322	1412	1266	1266
Total cold run time: 289922 ms
Total hot run time: 189201 ms

@doris-robot
Copy link

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

query1	0.03	0.03	0.03
query2	0.08	0.03	0.03
query3	0.23	0.07	0.07
query4	1.63	0.10	0.10
query5	0.41	0.41	0.39
query6	1.15	0.66	0.66
query7	0.02	0.01	0.01
query8	0.04	0.02	0.03
query9	0.59	0.52	0.52
query10	0.56	0.57	0.57
query11	0.14	0.10	0.10
query12	0.14	0.11	0.11
query13	0.62	0.60	0.59
query14	2.82	2.83	2.80
query15	0.90	0.85	0.85
query16	0.39	0.38	0.37
query17	1.00	1.00	0.99
query18	0.21	0.19	0.19
query19	1.93	1.76	1.97
query20	0.02	0.01	0.02
query21	15.37	0.90	0.56
query22	0.76	1.24	0.95
query23	14.72	1.36	0.62
query24	7.82	1.19	0.40
query25	0.50	0.18	0.12
query26	0.59	0.16	0.14
query27	0.05	0.05	0.05
query28	8.79	0.84	0.44
query29	12.59	3.90	3.29
query30	0.25	0.08	0.05
query31	2.84	0.58	0.38
query32	3.22	0.54	0.46
query33	2.96	3.15	3.02
query34	15.78	5.18	4.52
query35	4.57	4.48	4.54
query36	0.66	0.49	0.48
query37	0.09	0.06	0.07
query38	0.05	0.04	0.04
query39	0.03	0.03	0.02
query40	0.17	0.14	0.13
query41	0.09	0.02	0.02
query42	0.03	0.03	0.02
query43	0.04	0.04	0.03
Total cold run time: 104.88 s
Total hot run time: 30.45 s

<< ",tablet_id=" << tablet_id << ",lock_id=" << lock_id
<< ",st=" << st.to_string();
}
return st;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not return the status?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

remove_delete_bitmap_update_lock just try to release lock, some times it may fail, like lock id not found beacause lock is expired and loading task has already taken the lock, in this situation, we can do nothing, just print a warnning lock is enought, so no need to return a wrong statu

@hust-hhb
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

TeamCity cloud ut coverage result:
Function Coverage: 82.38% (1061/1288)
Line Coverage: 65.82% (17553/26670)
Region Coverage: 65.34% (8656/13248)
Branch Coverage: 55.21% (4665/8450)
Coverage Report: http://coverage.selectdb-in.cc/coverage/95f610851e958d2d67c07fc2e2e00f375efb79b2_95f610851e958d2d67c07fc2e2e00f375efb79b2_cloud/report/index.html

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17575	5221	5074	5074
q2	2042	311	168	168
q3	10394	1272	736	736
q4	10218	1009	520	520
q5	7574	2304	2332	2304
q6	185	170	138	138
q7	888	772	600	600
q8	9319	1278	1058	1058
q9	4840	4681	4837	4681
q10	6866	2323	1877	1877
q11	478	287	264	264
q12	344	348	226	226
q13	17757	3689	3065	3065
q14	241	230	208	208
q15	508	482	473	473
q16	607	607	578	578
q17	574	878	348	348
q18	6585	6463	6143	6143
q19	1982	952	543	543
q20	296	309	180	180
q21	2727	2112	1882	1882
q22	354	320	295	295
Total cold run time: 102354 ms
Total hot run time: 31361 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5360	5109	5112	5109
q2	231	323	234	234
q3	2163	2677	2333	2333
q4	1401	1813	1362	1362
q5	4215	4140	4162	4140
q6	208	165	124	124
q7	1889	1820	1715	1715
q8	2595	2727	2551	2551
q9	7155	7163	7163	7163
q10	3041	3238	2807	2807
q11	576	549	505	505
q12	701	838	623	623
q13	3459	3875	3288	3288
q14	282	299	266	266
q15	511	462	462	462
q16	661	678	653	653
q17	1140	1530	1405	1405
q18	7522	7327	7275	7275
q19	774	798	855	798
q20	1940	2036	1889	1889
q21	5416	4932	4773	4773
q22	607	590	563	563
Total cold run time: 51847 ms
Total hot run time: 50038 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 190200 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 95f610851e958d2d67c07fc2e2e00f375efb79b2, data reload: false

query1	1319	945	942	942
query2	6228	1834	1817	1817
query3	11089	4642	4523	4523
query4	53952	25533	23410	23410
query5	4997	591	522	522
query6	324	202	182	182
query7	4882	523	294	294
query8	306	247	232	232
query9	5282	2505	2496	2496
query10	436	316	257	257
query11	15214	15033	14938	14938
query12	162	113	107	107
query13	1043	518	393	393
query14	10078	6785	6579	6579
query15	200	203	175	175
query16	7042	688	484	484
query17	1058	701	585	585
query18	1513	429	313	313
query19	207	193	165	165
query20	122	121	135	121
query21	210	127	110	110
query22	4271	4501	4303	4303
query23	33944	33263	33790	33263
query24	5677	2439	2456	2439
query25	474	471	399	399
query26	685	276	169	169
query27	1743	472	345	345
query28	2736	2431	2403	2403
query29	603	564	428	428
query30	218	190	156	156
query31	903	893	816	816
query32	75	61	60	60
query33	435	360	309	309
query34	799	858	499	499
query35	800	838	758	758
query36	953	1011	890	890
query37	128	105	85	85
query38	4276	4293	4352	4293
query39	1509	1445	1438	1438
query40	212	115	108	108
query41	86	49	52	49
query42	122	104	101	101
query43	497	511	477	477
query44	1389	830	819	819
query45	180	179	169	169
query46	900	1067	646	646
query47	1811	1903	1823	1823
query48	381	414	325	325
query49	726	501	438	438
query50	722	757	419	419
query51	4256	4306	4156	4156
query52	113	111	93	93
query53	238	261	184	184
query54	474	483	406	406
query55	85	81	86	81
query56	264	271	260	260
query57	1185	1197	1141	1141
query58	246	233	276	233
query59	2776	2800	2726	2726
query60	300	270	282	270
query61	127	120	125	120
query62	734	744	684	684
query63	240	188	187	187
query64	1442	1088	704	704
query65	3307	3360	3215	3215
query66	681	386	280	280
query67	15696	15821	15482	15482
query68	3590	801	520	520
query69	477	293	268	268
query70	1197	1102	1122	1102
query71	383	305	262	262
query72	6320	3683	3823	3683
query73	758	750	352	352
query74	9073	8922	8737	8737
query75	3172	3154	2700	2700
query76	2756	1179	731	731
query77	547	384	280	280
query78	9997	10206	9297	9297
query79	970	888	584	584
query80	663	538	448	448
query81	518	279	239	239
query82	419	154	125	125
query83	191	167	157	157
query84	286	177	72	72
query85	752	354	302	302
query86	375	308	282	282
query87	4483	4478	4331	4331
query88	2832	2209	2219	2209
query89	388	318	284	284
query90	1579	194	185	185
query91	135	134	108	108
query92	62	58	59	58
query93	1293	1019	585	585
query94	651	399	295	295
query95	339	261	255	255
query96	476	548	271	271
query97	2817	2815	2709	2709
query98	299	204	201	201
query99	1290	1433	1274	1274
Total cold run time: 284171 ms
Total hot run time: 190200 ms

@doris-robot
Copy link

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

query1	0.03	0.03	0.03
query2	0.07	0.03	0.04
query3	0.25	0.06	0.06
query4	1.63	0.10	0.11
query5	0.44	0.40	0.43
query6	1.17	0.67	0.67
query7	0.03	0.02	0.01
query8	0.04	0.03	0.03
query9	0.60	0.52	0.53
query10	0.59	0.58	0.56
query11	0.15	0.10	0.10
query12	0.14	0.11	0.11
query13	0.61	0.60	0.60
query14	2.80	2.67	2.70
query15	0.92	0.85	0.84
query16	0.37	0.38	0.36
query17	1.03	1.04	1.05
query18	0.21	0.19	0.20
query19	1.90	1.80	2.01
query20	0.02	0.01	0.02
query21	15.36	0.87	0.52
query22	0.75	1.20	0.63
query23	14.97	1.38	0.59
query24	7.25	1.56	0.59
query25	0.48	0.18	0.13
query26	0.63	0.17	0.13
query27	0.06	0.05	0.05
query28	9.59	0.83	0.42
query29	12.58	3.94	3.28
query30	0.25	0.08	0.06
query31	2.82	0.58	0.39
query32	3.23	0.55	0.46
query33	3.05	3.00	3.00
query34	15.90	5.12	4.52
query35	4.62	4.57	4.55
query36	0.66	0.50	0.47
query37	0.09	0.06	0.06
query38	0.05	0.04	0.03
query39	0.03	0.03	0.02
query40	0.17	0.13	0.12
query41	0.08	0.03	0.03
query42	0.04	0.02	0.03
query43	0.04	0.03	0.03
Total cold run time: 105.7 s
Total hot run time: 30.23 s

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 42.94% (11299/26316)
Line Coverage: 32.87% (94880/288616)
Region Coverage: 32.04% (48651/151840)
Branch Coverage: 27.90% (24538/87942)
Coverage Report: http://coverage.selectdb-in.cc/coverage/95f610851e958d2d67c07fc2e2e00f375efb79b2_95f610851e958d2d67c07fc2e2e00f375efb79b2/report/index.html

@hust-hhb
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

TeamCity cloud ut coverage result:
Function Coverage: 82.38% (1061/1288)
Line Coverage: 65.90% (17582/26681)
Region Coverage: 65.38% (8664/13252)
Branch Coverage: 55.23% (4668/8452)
Coverage Report: http://coverage.selectdb-in.cc/coverage/c24be19faeb20d21108f299b3afa6f4016f57b7f_c24be19faeb20d21108f299b3afa6f4016f57b7f_cloud/report/index.html

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17584	5225	5050	5050
q2	2041	305	175	175
q3	10395	1297	725	725
q4	10209	1010	531	531
q5	7557	2366	2317	2317
q6	188	177	129	129
q7	893	753	597	597
q8	9304	1248	1046	1046
q9	5095	4566	4554	4554
q10	6810	2315	1918	1918
q11	460	273	257	257
q12	342	364	220	220
q13	17785	3689	3092	3092
q14	222	224	212	212
q15	513	474	456	456
q16	617	615	575	575
q17	568	875	345	345
q18	6650	6290	6203	6203
q19	1213	934	530	530
q20	317	331	194	194
q21	2847	2139	1909	1909
q22	376	335	310	310
Total cold run time: 101986 ms
Total hot run time: 31345 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5144	5063	5077	5063
q2	231	330	237	237
q3	2180	2648	2323	2323
q4	1482	1860	1415	1415
q5	4240	4115	4165	4115
q6	206	163	121	121
q7	1860	1796	1662	1662
q8	2612	2754	2564	2564
q9	7210	7080	7107	7080
q10	2984	3232	2808	2808
q11	569	500	487	487
q12	699	798	637	637
q13	3551	3838	3296	3296
q14	277	310	268	268
q15	496	453	455	453
q16	635	666	643	643
q17	1125	1595	1332	1332
q18	7565	7397	7294	7294
q19	765	766	937	766
q20	1957	2064	1878	1878
q21	5510	4972	4810	4810
q22	662	582	555	555
Total cold run time: 51960 ms
Total hot run time: 49807 ms

@doris-robot
Copy link

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

query1	977	367	387	367
query2	6548	1898	1820	1820
query3	6810	225	210	210
query4	26376	23813	22940	22940
query5	4306	651	470	470
query6	308	209	181	181
query7	4599	483	296	296
query8	283	271	219	219
query9	8589	2494	2503	2494
query10	488	308	256	256
query11	15752	15184	15083	15083
query12	155	109	106	106
query13	1663	516	382	382
query14	8688	6611	6628	6611
query15	202	197	172	172
query16	7163	636	475	475
query17	903	702	532	532
query18	1942	407	293	293
query19	192	205	154	154
query20	113	111	113	111
query21	212	118	99	99
query22	4116	4300	4502	4300
query23	34445	33605	33007	33007
query24	7696	2377	2400	2377
query25	550	436	382	382
query26	1227	270	153	153
query27	2162	490	324	324
query28	3999	2386	2360	2360
query29	745	534	404	404
query30	231	182	180	180
query31	984	839	769	769
query32	73	68	61	61
query33	550	346	303	303
query34	784	847	507	507
query35	792	826	734	734
query36	987	979	901	901
query37	114	92	72	72
query38	4094	4055	4093	4055
query39	1425	1402	1385	1385
query40	214	116	104	104
query41	64	55	50	50
query42	117	102	104	102
query43	496	522	481	481
query44	1280	788	805	788
query45	185	178	160	160
query46	864	1028	659	659
query47	1769	1798	1716	1716
query48	375	409	294	294
query49	768	499	391	391
query50	670	711	415	415
query51	4225	4148	4167	4148
query52	109	103	95	95
query53	221	264	185	185
query54	491	492	407	407
query55	86	78	86	78
query56	257	271	242	242
query57	1143	1154	1080	1080
query58	256	244	258	244
query59	2710	2848	2699	2699
query60	288	280	281	280
query61	146	146	135	135
query62	839	708	653	653
query63	222	191	189	189
query64	4454	1110	659	659
query65	3208	3177	3163	3163
query66	1125	399	296	296
query67	15837	15489	15588	15489
query68	7994	758	506	506
query69	464	297	253	253
query70	1219	1133	1144	1133
query71	407	287	270	270
query72	5728	3529	3605	3529
query73	700	689	357	357
query74	9094	9236	8709	8709
query75	3181	3148	2748	2748
query76	3251	1152	737	737
query77	516	372	270	270
query78	10064	10337	9309	9309
query79	2239	809	603	603
query80	702	539	444	444
query81	542	273	240	240
query82	419	133	98	98
query83	163	170	155	155
query84	290	99	105	99
query85	744	361	309	309
query86	383	302	291	291
query87	4613	4666	4352	4352
query88	3240	2225	2199	2199
query89	379	315	285	285
query90	1979	189	194	189
query91	147	139	112	112
query92	74	60	56	56
query93	2605	1016	577	577
query94	680	425	298	298
query95	350	268	272	268
query96	483	557	264	264
query97	2761	2832	2724	2724
query98	230	206	198	198
query99	1335	1379	1299	1299
Total cold run time: 270638 ms
Total hot run time: 183628 ms

@doris-robot
Copy link

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

query1	0.04	0.04	0.04
query2	0.07	0.04	0.03
query3	0.23	0.07	0.06
query4	1.62	0.11	0.11
query5	0.43	0.41	0.39
query6	1.14	0.67	0.65
query7	0.02	0.02	0.01
query8	0.05	0.03	0.03
query9	0.58	0.51	0.54
query10	0.56	0.58	0.57
query11	0.14	0.10	0.10
query12	0.14	0.11	0.11
query13	0.63	0.60	0.60
query14	2.71	2.70	2.71
query15	0.92	0.85	0.85
query16	0.36	0.38	0.39
query17	1.00	1.05	1.03
query18	0.22	0.19	0.19
query19	1.90	1.76	1.99
query20	0.02	0.01	0.01
query21	15.36	0.87	0.57
query22	0.77	1.10	0.69
query23	15.07	1.37	0.59
query24	7.28	1.53	0.95
query25	0.50	0.26	0.15
query26	0.63	0.16	0.15
query27	0.05	0.04	0.05
query28	9.89	0.84	0.41
query29	12.55	3.97	3.28
query30	0.25	0.11	0.06
query31	2.82	0.60	0.38
query32	3.24	0.55	0.47
query33	2.93	2.98	3.01
query34	15.78	5.11	4.48
query35	4.54	4.51	4.54
query36	0.65	0.49	0.48
query37	0.09	0.06	0.06
query38	0.06	0.04	0.03
query39	0.03	0.02	0.02
query40	0.17	0.13	0.13
query41	0.08	0.02	0.02
query42	0.03	0.02	0.02
query43	0.03	0.03	0.03
Total cold run time: 105.58 s
Total hot run time: 30.63 s

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 42.94% (11300/26314)
Line Coverage: 32.89% (94925/288582)
Region Coverage: 32.05% (48662/151825)
Branch Coverage: 27.91% (24548/87940)
Coverage Report: http://coverage.selectdb-in.cc/coverage/c24be19faeb20d21108f299b3afa6f4016f57b7f_c24be19faeb20d21108f299b3afa6f4016f57b7f/report/index.html

Copy link
Contributor

@zhannngchen zhannngchen 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 Feb 12, 2025
@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.

// will release if abort job successfully, but if abort failed, delete bitmap
// lock will not release, in this situation, be need to send this rpc to ms
// to try to release delete bitmap lock.
_engine.meta_mgr().remove_delete_bitmap_update_lock(
Copy link
Contributor

Choose a reason for hiding this comment

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

"If the RPC to release the lock fails here, will the lock still not be released?"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, this pr just try to release lock, it may fail on TXN_KV_CONFICT, this problem has existed for a long time, if release rpc fail, this lock will be released when lock is expired.

Copy link
Contributor

Choose a reason for hiding this comment

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

@luwei16 It's ok if the rpc failed to release lock here, it's the same with rpc failed on commit phase.

Copy link
Contributor

@dataroaring dataroaring left a comment

Choose a reason for hiding this comment

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

LGTM

@dataroaring dataroaring merged commit 0b06f89 into apache:master Feb 14, 2025
30 of 37 checks passed
lzyy2024 pushed a commit to lzyy2024/doris that referenced this pull request Feb 21, 2025
…ort fail (apache#47766)

### What problem does this PR solve?
When trigger cu or base compaciton with full compaction in the same
time, compaciton may abort fail, delete bitmap lock will hold by the
failed compaciton, in this situation, need to release delete bitmap
lock.
dataroaring pushed a commit that referenced this pull request Feb 22, 2025
@gavinchou gavinchou mentioned this pull request Apr 23, 2025
koarz pushed a commit to koarz/doris that referenced this pull request Jun 4, 2025
…ort fail (apache#47766)

### What problem does this PR solve?
When trigger cu or base compaciton with full compaction in the same
time, compaciton may abort fail, delete bitmap lock will hold by the
failed compaciton, in this situation, need to release delete bitmap
lock.
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/3.0.5-merged p0_b reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants