Skip to content

Conversation

@Yukang-Lian
Copy link
Collaborator

@Yukang-Lian Yukang-Lian commented Jan 21, 2025

What problem does this PR solve?

Issue Number: close #xxx

Related PR: #xxx

Problem Summary:

When a tablet's first rowset is a delete operation followed by data rowsets, the cumulative compaction process currently skips the delete rowset and only compacts the subsequent data rowsets. This leads to a failure in incrementing the cumulative point due to the condition output_rowset->start_version() == last_cumulative_point not being satisfied.

In the current behavior, the cumulative point for the delete rowset only advances after all data rowsets have completed cumulative compaction. This creates an inefficient scenario where if continuous data ingestion occurs, all subsequent data rowsets are forced to participate in cumulative compaction, resulting in significant resource waste.

This PR fixes the issue by properly handling the cumulative point advancement when encountering delete rowsets at the beginning of the version sequence.

Release note

None

Check List (For Author)

  • Test

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

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

    • No.
    • Yes.

Check List (For Reviewer who merge this PR)

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

@Thearas
Copy link
Contributor

Thearas commented Jan 21, 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?

@Yukang-Lian
Copy link
Collaborator Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17589	5534	5803	5534
q2	2058	315	178	178
q3	10635	1266	732	732
q4	10219	990	535	535
q5	7566	2393	2169	2169
q6	197	172	135	135
q7	911	774	624	624
q8	9250	1405	1176	1176
q9	5288	4819	4922	4819
q10	6848	2334	1880	1880
q11	479	273	245	245
q12	348	371	217	217
q13	17784	3694	3152	3152
q14	234	244	218	218
q15	524	474	466	466
q16	634	605	583	583
q17	591	881	329	329
q18	7071	6389	6354	6354
q19	2869	969	542	542
q20	301	313	199	199
q21	2868	2224	2031	2031
q22	360	343	310	310
Total cold run time: 104624 ms
Total hot run time: 32428 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5617	5508	5512	5508
q2	242	337	240	240
q3	2280	2712	2366	2366
q4	1456	1849	1409	1409
q5	4370	4794	4743	4743
q6	172	162	127	127
q7	2147	2049	1829	1829
q8	2657	2801	2752	2752
q9	7481	7285	7372	7285
q10	3029	3327	2733	2733
q11	571	513	493	493
q12	658	773	631	631
q13	3496	3969	3293	3293
q14	303	332	275	275
q15	525	467	470	467
q16	655	686	672	672
q17	1233	1765	1265	1265
q18	7782	7511	7453	7453
q19	837	1048	1157	1048
q20	2012	2059	1888	1888
q21	5802	5163	5100	5100
q22	640	646	551	551
Total cold run time: 53965 ms
Total hot run time: 52128 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 194719 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 4710188af0d4f34f1bfcb2c5246f585e7f3ba999, data reload: false

query1	1339	964	901	901
query2	6410	2039	1968	1968
query3	10952	4516	4541	4516
query4	60637	30962	22982	22982
query5	5430	620	474	474
query6	421	187	195	187
query7	5576	510	292	292
query8	317	230	228	228
query9	8449	2616	2579	2579
query10	454	320	253	253
query11	17634	15317	15368	15317
query12	168	118	111	111
query13	1462	551	418	418
query14	11318	7527	7477	7477
query15	216	206	200	200
query16	6478	666	508	508
query17	1085	738	573	573
query18	839	376	301	301
query19	206	201	167	167
query20	118	116	115	115
query21	208	135	121	121
query22	4663	4776	4506	4506
query23	34053	33515	33423	33423
query24	5547	2327	2314	2314
query25	498	526	415	415
query26	634	277	155	155
query27	1658	467	329	329
query28	4433	2465	2472	2465
query29	520	558	435	435
query30	213	193	160	160
query31	951	904	847	847
query32	72	61	63	61
query33	447	357	311	311
query34	740	884	517	517
query35	810	877	765	765
query36	1024	1043	945	945
query37	127	98	78	78
query38	4189	4373	4307	4307
query39	1489	1424	1442	1424
query40	194	115	101	101
query41	53	48	51	48
query42	122	104	99	99
query43	515	530	488	488
query44	1332	831	826	826
query45	188	175	168	168
query46	887	1081	657	657
query47	1916	1923	1876	1876
query48	393	423	333	333
query49	727	528	405	405
query50	664	676	405	405
query51	7170	6948	7003	6948
query52	103	100	91	91
query53	231	256	183	183
query54	488	494	428	428
query55	86	85	82	82
query56	258	273	248	248
query57	1278	1213	1145	1145
query58	235	236	238	236
query59	3063	3006	2912	2912
query60	276	272	260	260
query61	121	111	119	111
query62	700	747	647	647
query63	218	187	188	187
query64	1208	1010	657	657
query65	3312	3157	3154	3154
query66	712	398	302	302
query67	15987	15867	15580	15580
query68	5038	832	538	538
query69	510	288	262	262
query70	1175	1149	1130	1130
query71	416	291	248	248
query72	6048	3845	3825	3825
query73	806	742	352	352
query74	9225	9245	8790	8790
query75	3216	3168	2672	2672
query76	3814	1203	771	771
query77	497	381	344	344
query78	10136	10186	9211	9211
query79	2994	810	602	602
query80	1754	539	448	448
query81	573	279	231	231
query82	354	155	125	125
query83	268	170	150	150
query84	292	87	82	82
query85	837	341	302	302
query86	472	315	308	308
query87	4475	4421	4320	4320
query88	3674	2155	2122	2122
query89	404	319	283	283
query90	1587	190	193	190
query91	126	132	112	112
query92	65	55	54	54
query93	2864	849	542	542
query94	769	407	295	295
query95	333	265	254	254
query96	497	609	288	288
query97	2787	2890	2692	2692
query98	211	200	190	190
query99	1298	1387	1264	1264
Total cold run time: 311737 ms
Total hot run time: 194719 ms

@doris-robot
Copy link

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

query1	0.03	0.05	0.03
query2	0.06	0.04	0.03
query3	0.24	0.07	0.07
query4	1.63	0.11	0.11
query5	0.41	0.43	0.41
query6	1.16	0.65	0.66
query7	0.02	0.02	0.02
query8	0.04	0.03	0.03
query9	0.58	0.51	0.49
query10	0.57	0.56	0.57
query11	0.15	0.11	0.10
query12	0.14	0.11	0.12
query13	0.62	0.59	0.61
query14	2.69	2.83	2.91
query15	0.93	0.82	0.83
query16	0.38	0.38	0.37
query17	1.07	1.03	1.04
query18	0.23	0.21	0.20
query19	1.97	1.85	1.99
query20	0.02	0.01	0.02
query21	15.38	0.92	0.58
query22	0.77	0.65	0.70
query23	15.36	1.40	0.54
query24	3.33	1.52	0.49
query25	0.19	0.18	0.09
query26	0.32	0.15	0.14
query27	0.05	0.04	0.05
query28	13.76	0.94	0.42
query29	12.58	3.92	3.32
query30	0.24	0.08	0.06
query31	2.83	0.61	0.39
query32	3.23	0.55	0.45
query33	3.00	2.99	2.99
query34	16.56	5.10	4.47
query35	4.49	4.51	4.59
query36	0.64	0.49	0.49
query37	0.09	0.06	0.06
query38	0.04	0.03	0.03
query39	0.03	0.03	0.02
query40	0.15	0.12	0.12
query41	0.08	0.03	0.02
query42	0.03	0.02	0.02
query43	0.03	0.03	0.03
Total cold run time: 106.12 s
Total hot run time: 30.24 s

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 41.57% (10832/26060)
Line Coverage: 31.95% (91548/286491)
Region Coverage: 31.09% (46894/150827)
Branch Coverage: 27.18% (23750/87386)
Coverage Report: http://coverage.selectdb-in.cc/coverage/4710188af0d4f34f1bfcb2c5246f585e7f3ba999_4710188af0d4f34f1bfcb2c5246f585e7f3ba999/report/index.html

dataroaring
dataroaring previously approved these changes Mar 26, 2025
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

@github-actions
Copy link
Contributor

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

@github-actions github-actions bot added approved Indicates a PR has been approved by one committer. reviewed labels Mar 26, 2025
@github-actions
Copy link
Contributor

PR approved by anyone and no changes requested.

@Yukang-Lian
Copy link
Collaborator Author

run buildall

@github-actions github-actions bot removed the approved Indicates a PR has been approved by one committer. label Mar 27, 2025
@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	26395	5060	5084	5060
q2	2074	302	171	171
q3	10381	1266	690	690
q4	10240	1023	546	546
q5	7592	2410	2374	2374
q6	187	159	131	131
q7	956	729	617	617
q8	9347	1329	1180	1180
q9	6869	5203	5161	5161
q10	6833	2329	1864	1864
q11	484	269	258	258
q12	346	359	221	221
q13	17767	3656	3046	3046
q14	237	224	217	217
q15	549	499	495	495
q16	616	618	594	594
q17	577	871	352	352
q18	7702	7273	7114	7114
q19	1220	956	540	540
q20	310	324	187	187
q21	4145	2722	2446	2446
q22	1059	1035	958	958
Total cold run time: 115886 ms
Total hot run time: 34222 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5121	5069	5066	5066
q2	237	320	223	223
q3	2156	2636	2272	2272
q4	1440	1802	1381	1381
q5	4589	4466	4425	4425
q6	217	167	124	124
q7	1973	1926	1812	1812
q8	2613	2648	2556	2556
q9	7226	7198	7279	7198
q10	3038	3183	2744	2744
q11	581	522	490	490
q12	713	767	620	620
q13	3525	3979	3279	3279
q14	273	307	267	267
q15	545	501	514	501
q16	651	673	612	612
q17	1137	1550	1372	1372
q18	7811	7631	7542	7542
q19	810	794	930	794
q20	1938	1957	1837	1837
q21	5137	4648	4533	4533
q22	1055	1029	1005	1005
Total cold run time: 52786 ms
Total hot run time: 50653 ms

@doris-robot
Copy link

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

query1	1004	495	478	478
query2	6553	1912	1932	1912
query3	6794	218	217	217
query4	26218	23207	22902	22902
query5	4337	633	489	489
query6	309	205	189	189
query7	4608	492	271	271
query8	300	247	243	243
query9	8636	2556	2553	2553
query10	471	304	279	279
query11	15720	15105	14822	14822
query12	166	115	107	107
query13	1658	516	416	416
query14	9676	6158	6161	6158
query15	204	192	179	179
query16	7641	632	473	473
query17	1198	746	584	584
query18	2065	417	317	317
query19	190	183	160	160
query20	121	120	121	120
query21	212	129	104	104
query22	4302	4181	4197	4181
query23	33890	33097	33154	33097
query24	8296	2401	2406	2401
query25	518	439	399	399
query26	1227	271	149	149
query27	2670	491	320	320
query28	4356	2441	2396	2396
query29	716	576	426	426
query30	280	213	185	185
query31	925	865	756	756
query32	69	61	57	57
query33	551	367	302	302
query34	802	835	512	512
query35	781	805	762	762
query36	954	982	872	872
query37	115	101	80	80
query38	4236	4140	4207	4140
query39	1446	1403	1430	1403
query40	208	128	100	100
query41	55	56	50	50
query42	116	106	102	102
query43	490	502	471	471
query44	1317	799	800	799
query45	173	169	170	169
query46	851	1025	649	649
query47	1802	1802	1749	1749
query48	377	404	298	298
query49	777	523	401	401
query50	687	735	449	449
query51	4167	4208	4120	4120
query52	106	107	99	99
query53	221	260	182	182
query54	501	492	438	438
query55	86	80	80	80
query56	266	260	257	257
query57	1123	1142	1093	1093
query58	246	238	254	238
query59	2532	2811	2613	2613
query60	284	279	272	272
query61	130	127	127	127
query62	795	740	663	663
query63	219	184	179	179
query64	4243	1001	657	657
query65	4371	4240	4242	4240
query66	1067	421	298	298
query67	15896	15670	15550	15550
query68	8257	879	525	525
query69	465	306	262	262
query70	1210	1094	1069	1069
query71	476	299	272	272
query72	5564	4655	4620	4620
query73	720	595	348	348
query74	8929	9316	8936	8936
query75	3951	3284	2739	2739
query76	3724	1205	787	787
query77	774	383	288	288
query78	10103	10182	9283	9283
query79	2341	814	575	575
query80	636	513	446	446
query81	479	255	223	223
query82	505	125	95	95
query83	177	177	164	164
query84	244	98	72	72
query85	848	357	378	357
query86	388	301	270	270
query87	4460	4525	4461	4461
query88	3786	2268	2251	2251
query89	383	315	283	283
query90	1878	220	221	220
query91	143	141	107	107
query92	74	60	60	60
query93	1749	1059	595	595
query94	662	409	313	313
query95	358	279	274	274
query96	487	567	282	282
query97	3254	3234	3149	3149
query98	239	205	229	205
query99	1349	1415	1262	1262
Total cold run time: 275934 ms
Total hot run time: 186547 ms

@doris-robot
Copy link

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

query1	0.04	0.03	0.04
query2	0.13	0.10	0.10
query3	0.25	0.20	0.20
query4	1.59	0.19	0.20
query5	0.60	0.60	0.58
query6	1.19	0.72	0.72
query7	0.03	0.02	0.02
query8	0.04	0.04	0.04
query9	0.57	0.52	0.53
query10	0.57	0.58	0.56
query11	0.15	0.11	0.10
query12	0.15	0.10	0.11
query13	0.62	0.60	0.60
query14	2.65	2.67	2.67
query15	0.93	0.86	0.84
query16	0.38	0.37	0.38
query17	1.04	1.03	1.04
query18	0.22	0.20	0.20
query19	1.91	1.81	2.02
query20	0.02	0.01	0.01
query21	15.36	0.89	0.54
query22	0.75	1.11	0.72
query23	14.96	1.36	0.58
query24	7.60	1.14	0.35
query25	0.48	0.11	0.08
query26	0.71	0.17	0.13
query27	0.05	0.05	0.05
query28	9.01	0.84	0.43
query29	12.57	3.97	3.28
query30	0.24	0.08	0.06
query31	2.83	0.58	0.38
query32	3.22	0.54	0.46
query33	3.04	3.02	3.07
query34	15.62	5.10	4.47
query35	4.52	4.47	4.51
query36	0.66	0.49	0.48
query37	0.09	0.06	0.06
query38	0.05	0.04	0.04
query39	0.03	0.02	0.03
query40	0.16	0.13	0.12
query41	0.08	0.02	0.02
query42	0.03	0.02	0.02
query43	0.04	0.03	0.03
Total cold run time: 105.18 s
Total hot run time: 30.5 s

@doris-robot
Copy link

BE UT Coverage Report

Increment line coverage 75.00% (3/4) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 50.95% (13638/26769)
Line Coverage 40.29% (118322/293693)
Region Coverage 38.97% (60112/154251)
Branch Coverage 33.87% (30230/89244)

@Yukang-Lian
Copy link
Collaborator Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	28551	5130	5254	5130
q2	2047	281	161	161
q3	10446	1272	689	689
q4	10230	994	559	559
q5	7528	2393	2355	2355
q6	206	160	134	134
q7	918	760	614	614
q8	9332	1319	1078	1078
q9	7000	5166	5120	5120
q10	6804	2295	1894	1894
q11	468	270	257	257
q12	349	355	224	224
q13	17761	3687	3143	3143
q14	226	233	212	212
q15	530	481	470	470
q16	618	627	581	581
q17	568	863	355	355
q18	7512	7294	7167	7167
q19	1227	954	545	545
q20	319	334	200	200
q21	3834	2582	2403	2403
q22	1037	1032	980	980
Total cold run time: 117511 ms
Total hot run time: 34271 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5210	5162	5165	5162
q2	241	318	234	234
q3	2158	2665	2287	2287
q4	1475	1933	1504	1504
q5	4550	4398	4341	4341
q6	210	165	126	126
q7	1974	1916	1735	1735
q8	2602	2462	2495	2462
q9	7173	7191	7205	7191
q10	2928	3180	2720	2720
q11	574	506	492	492
q12	657	792	626	626
q13	3501	3961	3233	3233
q14	289	301	257	257
q15	524	468	474	468
q16	640	679	626	626
q17	1194	1552	1417	1417
q18	7758	7663	7521	7521
q19	824	798	998	798
q20	1980	2002	1850	1850
q21	5052	4647	4666	4647
q22	1052	1024	977	977
Total cold run time: 52566 ms
Total hot run time: 50674 ms

@doris-robot
Copy link

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

query1	1003	475	479	475
query2	6548	1947	1915	1915
query3	6792	208	213	208
query4	26416	23583	23594	23583
query5	4315	663	478	478
query6	296	206	168	168
query7	4598	468	263	263
query8	283	231	226	226
query9	8605	2496	2488	2488
query10	465	322	253	253
query11	15797	14958	14676	14676
query12	167	113	113	113
query13	1657	529	407	407
query14	8655	6311	6182	6182
query15	203	178	174	174
query16	7132	623	494	494
query17	937	702	575	575
query18	1979	409	309	309
query19	193	183	159	159
query20	121	121	122	121
query21	206	122	105	105
query22	4201	4271	4050	4050
query23	33735	32949	32875	32875
query24	8502	2419	2355	2355
query25	560	439	377	377
query26	1227	266	143	143
query27	2746	496	322	322
query28	4337	2402	2382	2382
query29	754	603	441	441
query30	295	215	186	186
query31	925	859	753	753
query32	75	63	62	62
query33	568	375	318	318
query34	774	839	491	491
query35	789	821	724	724
query36	939	950	899	899
query37	115	140	74	74
query38	4186	4159	4116	4116
query39	1451	1385	1387	1385
query40	210	114	99	99
query41	76	54	50	50
query42	116	99	101	99
query43	497	510	482	482
query44	1271	789	777	777
query45	176	173	162	162
query46	823	1029	617	617
query47	1749	1809	1726	1726
query48	374	407	304	304
query49	770	492	397	397
query50	709	729	400	400
query51	4152	4162	4153	4153
query52	110	104	94	94
query53	214	256	184	184
query54	486	485	418	418
query55	81	79	81	79
query56	312	253	268	253
query57	1117	1120	1069	1069
query58	255	232	231	231
query59	2699	2861	2694	2694
query60	280	267	257	257
query61	120	125	121	121
query62	813	716	663	663
query63	217	180	174	174
query64	4364	976	756	756
query65	4288	4218	4182	4182
query66	1147	413	292	292
query67	15896	15541	15645	15541
query68	8330	877	510	510
query69	473	325	262	262
query70	1268	1136	1087	1087
query71	438	302	277	277
query72	5748	4733	4784	4733
query73	729	649	343	343
query74	8933	9072	8880	8880
query75	3790	3250	2653	2653
query76	3613	1189	746	746
query77	789	373	276	276
query78	10064	10208	9307	9307
query79	2392	800	569	569
query80	645	518	447	447
query81	467	260	224	224
query82	453	127	99	99
query83	211	178	163	163
query84	293	93	74	74
query85	779	428	305	305
query86	350	296	306	296
query87	4440	4496	4443	4443
query88	2874	2231	2226	2226
query89	401	314	273	273
query90	1903	213	216	213
query91	140	143	115	115
query92	74	59	59	59
query93	1767	1069	580	580
query94	671	411	307	307
query95	353	266	265	265
query96	478	543	277	277
query97	3207	3213	3128	3128
query98	250	244	206	206
query99	1447	1375	1245	1245
Total cold run time: 273639 ms
Total hot run time: 186187 ms

@doris-robot
Copy link

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

query1	0.04	0.04	0.03
query2	0.12	0.11	0.10
query3	0.24	0.20	0.19
query4	1.59	0.19	0.19
query5	0.60	0.58	0.60
query6	1.19	0.72	0.72
query7	0.03	0.01	0.02
query8	0.04	0.03	0.03
query9	0.57	0.52	0.51
query10	0.58	0.58	0.57
query11	0.15	0.10	0.10
query12	0.14	0.12	0.11
query13	0.61	0.59	0.60
query14	2.87	2.67	2.70
query15	0.92	0.85	0.84
query16	0.40	0.38	0.38
query17	1.00	1.00	1.01
query18	0.21	0.20	0.20
query19	1.84	1.88	1.89
query20	0.02	0.01	0.01
query21	15.37	0.87	0.53
query22	0.76	1.01	0.58
query23	15.19	1.37	0.65
query24	7.13	1.65	0.90
query25	0.52	0.11	0.08
query26	0.61	0.16	0.14
query27	0.05	0.05	0.05
query28	9.97	0.80	0.43
query29	12.60	4.22	3.50
query30	0.25	0.08	0.06
query31	2.83	0.57	0.39
query32	3.22	0.54	0.48
query33	2.96	3.04	3.03
query34	15.66	5.12	4.51
query35	4.50	4.49	4.47
query36	0.66	0.49	0.48
query37	0.08	0.06	0.06
query38	0.05	0.04	0.03
query39	0.03	0.02	0.03
query40	0.17	0.14	0.12
query41	0.08	0.03	0.03
query42	0.03	0.02	0.02
query43	0.04	0.02	0.02
Total cold run time: 105.92 s
Total hot run time: 31.29 s

@doris-robot
Copy link

BE UT Coverage Report

Increment line coverage 75.00% (3/4) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 50.95% (13638/26769)
Line Coverage 40.28% (118307/293703)
Region Coverage 38.96% (60108/154265)
Branch Coverage 33.87% (30232/89246)

@github-actions
Copy link
Contributor

github-actions bot commented Apr 1, 2025

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

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Apr 1, 2025
@gavinchou gavinchou merged commit 3ef6312 into apache:master Apr 1, 2025
25 of 27 checks passed
github-actions bot pushed a commit that referenced this pull request Apr 1, 2025
…ration (#47282)

When a tablet's first rowset is a delete operation followed by data rowsets, the cumulative compaction process currently skips the delete rowset and only compacts the subsequent data rowsets. This leads to a failure in incrementing the cumulative point due to the condition output_rowset->start_version() == last_cumulative_point not being satisfied.

In the current behavior, the cumulative point for the delete rowset only advances after all data rowsets have completed cumulative compaction. This creates an inefficient scenario where if continuous data ingestion occurs, all subsequent data rowsets are forced to participate in cumulative compaction, resulting in significant resource waste.

This PR fixes the issue by properly handling the cumulative point advancement when encountering delete rowsets at the beginning of the version sequence.
dataroaring pushed a commit that referenced this pull request Apr 2, 2025
…r Delete Operation #47282 (#49732)

Cherry-picked from #47282

Co-authored-by: abmdocrt <lianyukang@selectdb.com>
@gavinchou gavinchou mentioned this pull request Apr 23, 2025
koarz pushed a commit to koarz/doris that referenced this pull request Jun 4, 2025
…ration (apache#47282)

When a tablet's first rowset is a delete operation followed by data rowsets, the cumulative compaction process currently skips the delete rowset and only compacts the subsequent data rowsets. This leads to a failure in incrementing the cumulative point due to the condition output_rowset->start_version() == last_cumulative_point not being satisfied.

In the current behavior, the cumulative point for the delete rowset only advances after all data rowsets have completed cumulative compaction. This creates an inefficient scenario where if continuous data ingestion occurs, all subsequent data rowsets are forced to participate in cumulative compaction, resulting in significant resource waste.

This PR fixes the issue by properly handling the cumulative point advancement when encountering delete rowsets at the beginning of the version sequence.
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 reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants