Skip to content

Conversation

@zhannngchen
Copy link
Contributor

Proposed changes

Issue Number: close #xxx

We found in our stress test environment that when performing concurrent partial column updates, data was lost or inconsistent due to not to handle write exceptions of the newly generated segment well in publish phase:

  1. when two concurrent partial column update job try to update an identical key at the same time, additional conflict handling needs to be done in the publish phase
  2. and the load task with a higher version needs to generate the new rows and write them to the newly generated segmnet, while marking the corresponding key in the original segment for deletion
  3. this deletion marker is updated in txn_info->delete_bitmap in real time, when writing the new segment failed, these deletion markers for the original segment are not rolled back
  4. and the next time the publish task retries, it will not process these keys because they have already been marked for deletion.

Further comments

If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...

@zhannngchen
Copy link
Contributor Author

run buildall

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

1 similar comment
@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	18146	5422	5535	5422
q2	2442	148	131	131
q3	11394	1180	1197	1180
q4	11064	772	799	772
q5	8174	3270	3267	3267
q6	203	126	125	125
q7	883	514	498	498
q8	9658	1956	1984	1956
q9	7263	6388	6381	6381
q10	8238	3044	3086	3044
q11	401	215	205	205
q12	351	195	191	191
q13	17984	3349	3364	3349
q14	252	215	220	215
q15	546	503	504	503
q16	437	369	380	369
q17	951	502	521	502
q18	7647	7143	6733	6733
q19	1584	1359	1351	1351
q20	554	310	280	280
q21	2816	2462	2433	2433
q22	358	306	291	291
Total cold run time: 111346 ms
Total hot run time: 39198 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5391	5145	5297	5145
q2	329	220	216	216
q3	3338	3213	3224	3213
q4	2155	2041	2047	2041
q5	6164	5923	5845	5845
q6	201	121	119	119
q7	2337	1923	1837	1837
q8	3239	3400	3412	3400
q9	9046	8923	8722	8722
q10	3874	3791	3853	3791
q11	566	455	478	455
q12	825	614	655	614
q13	16934	3145	3118	3118
q14	281	256	288	256
q15	553	505	505	505
q16	517	481	473	473
q17	1887	1816	1901	1816
q18	9681	12738	9768	9768
q19	27696	1551	1547	1547
q20	4581	1955	1908	1908
q21	15971	5387	5391	5387
q22	1858	519	538	519
Total cold run time: 117424 ms
Total hot run time: 60695 ms

@doris-robot
Copy link

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

query1	920	336	329	329
query2	6572	1961	1882	1882
query3	6697	204	195	195
query4	32147	22210	22218	22210
query5	4468	371	352	352
query6	236	155	158	155
query7	4605	265	272	265
query8	218	176	181	176
query9	8359	2507	2493	2493
query10	425	227	221	221
query11	16900	15657	15537	15537
query12	124	66	64	64
query13	1683	379	389	379
query14	10563	6978	6949	6949
query15	215	186	177	177
query16	5783	255	252	252
query17	952	466	480	466
query18	1801	257	268	257
query19	179	136	130	130
query20	70	71	63	63
query21	199	127	123	123
query22	5075	4999	5001	4999
query23	31774	30935	30758	30758
query24	12922	2781	2819	2781
query25	565	305	316	305
query26	1825	140	143	140
query27	3534	292	289	289
query28	7081	1818	1797	1797
query29	2146	624	621	621
query30	277	135	142	135
query31	958	739	759	739
query32	71	47	47	47
query33	717	209	206	206
query34	1323	444	449	444
query35	864	774	735	735
query36	1264	1151	1173	1151
query37	172	60	59	59
query38	3371	3226	3267	3226
query39	1321	1281	1279	1279
query40	350	84	85	84
query41	39	35	34	34
query42	97	84	82	82
query43	522	476	458	458
query44	1048	679	677	677
query45	192	174	173	173
query46	1065	646	655	646
query47	1678	1523	1563	1523
query48	384	298	321	298
query49	1220	287	283	283
query50	668	306	310	306
query51	5322	5249	5211	5211
query52	91	74	78	74
query53	315	253	251	251
query54	242	192	179	179
query55	88	79	74	74
query56	174	156	155	155
query57	1036	937	923	923
query58	183	157	148	148
query59	2947	2439	2636	2439
query60	207	177	179	177
query61	83	90	85	85
query62	579	358	374	358
query63	282	250	261	250
query64	6074	1774	1713	1713
query65	3310	3229	3227	3227
query66	1422	315	309	309
query67	15587	15261	15544	15261
query68	10437	548	526	526
query69	603	311	286	286
query70	1546	1498	1530	1498
query71	10469	10194	10191	10191
query72	4355	2828	2814	2814
query73	1849	324	323	323
query74	7062	6471	6422	6422
query75	4893	2329	2308	2308
query76	7192	1058	985	985
query77	846	221	228	221
query78	8926	8933	8729	8729
query79	994	494	489	489
query80	710	321	315	315
query81	469	199	198	198
query82	218	79	78	78
query83	163	111	113	111
query84	280	67	68	67
query85	1125	332	319	319
query86	390	405	375	375
query87	3504	3402	3359	3359
query88	3133	2203	2215	2203
query89	417	360	345	345
query90	2171	182	182	182
query91	158	119	130	119
query92	52	47	41	41
query93	1379	425	442	425
query94	1282	155	158	155
query95	494	455	453	453
query96	613	331	321	321
query97	4237	4123	4143	4123
query98	210	203	187	187
query99	1019	725	715	715
Total cold run time: 304777 ms
Total hot run time: 186667 ms

@doris-robot
Copy link

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

query1	0.03	0.03	0.03
query2	0.05	0.02	0.02
query3	0.22	0.04	0.04
query4	1.70	0.08	0.08
query5	0.54	0.52	0.52
query6	1.27	0.64	0.65
query7	0.02	0.01	0.01
query8	0.04	0.03	0.03
query9	0.54	0.51	0.50
query10	0.56	0.56	0.56
query11	0.11	0.08	0.09
query12	0.11	0.09	0.09
query13	0.60	0.61	0.60
query14	0.78	0.80	0.81
query15	0.78	0.78	0.76
query16	0.39	0.38	0.39
query17	1.02	1.01	1.01
query18	0.23	0.25	0.25
query19	1.85	1.80	1.81
query20	0.02	0.01	0.01
query21	15.41	0.59	0.57
query22	2.51	2.90	2.07
query23	17.37	0.83	0.79
query24	2.36	0.89	0.91
query25	0.42	0.23	0.11
query26	0.50	0.14	0.14
query27	0.05	0.06	0.05
query28	11.62	0.77	0.75
query29	12.49	3.17	3.29
query30	0.56	0.48	0.45
query31	2.78	0.33	0.36
query32	3.37	0.47	0.48
query33	3.22	3.25	3.24
query34	15.80	4.21	4.30
query35	4.30	4.24	4.25
query36	1.10	1.06	1.08
query37	0.06	0.05	0.05
query38	0.04	0.03	0.03
query39	0.02	0.01	0.02
query40	0.15	0.13	0.14
query41	0.07	0.01	0.02
query42	0.02	0.02	0.01
query43	0.02	0.02	0.02
Total cold run time: 105.1 s
Total hot run time: 31.01 s

@doris-robot
Copy link

Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G'

Load test result on commit eb92590aa5eef895832013a2d491ce36e70e4d4b with default session variables
Stream load json:         19 seconds loaded 2358488459 Bytes, about 118 MB/s
Stream load orc:          58 seconds loaded 1101869774 Bytes, about 18 MB/s
Stream load parquet:      31 seconds loaded 861443392 Bytes, about 26 MB/s
Insert into select:       14.7 seconds inserted 10000000 Rows, about 680K ops/s

Copy link
Contributor

@liaoxin01 liaoxin01 left a comment

Choose a reason for hiding this comment

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

LGTM

@github-actions
Copy link
Contributor

PR approved by anyone and no changes requested.

@zhannngchen
Copy link
Contributor Author

run buildall

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17636	5518	5233	5233
q2	2053	140	133	133
q3	10738	1177	1153	1153
q4	10295	751	833	751
q5	7730	3147	3131	3131
q6	195	120	118	118
q7	844	492	480	480
q8	9238	1923	1938	1923
q9	7298	6390	6374	6374
q10	8206	3066	3049	3049
q11	413	218	213	213
q12	358	193	189	189
q13	17992	3384	3366	3366
q14	244	204	208	204
q15	553	526	501	501
q16	424	384	370	370
q17	933	567	458	458
q18	7539	6908	6839	6839
q19	1797	1363	1413	1363
q20	597	291	300	291
q21	2754	2447	2420	2420
q22	357	299	313	299
Total cold run time: 108194 ms
Total hot run time: 38858 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5319	5358	5261	5261
q2	322	213	210	210
q3	3309	3207	3251	3207
q4	2120	2052	2076	2052
q5	6029	5889	5862	5862
q6	200	118	119	118
q7	2297	1921	1923	1921
q8	3242	3365	3367	3365
q9	9008	8765	8792	8765
q10	3923	3812	3838	3812
q11	564	465	443	443
q12	818	623	621	621
q13	16933	3175	3158	3158
q14	277	247	270	247
q15	556	504	513	504
q16	511	464	470	464
q17	1905	1869	1870	1869
q18	9555	18221	9502	9502
q19	24998	1557	1515	1515
q20	4620	1941	1926	1926
q21	14426	5435	5325	5325
q22	961	556	570	556
Total cold run time: 111893 ms
Total hot run time: 60703 ms

@doris-robot
Copy link

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

query1	941	333	321	321
query2	6599	1835	1864	1835
query3	6700	201	195	195
query4	32622	22108	22168	22108
query5	4444	361	353	353
query6	247	156	149	149
query7	4606	255	274	255
query8	231	170	173	170
query9	8402	2567	2549	2549
query10	412	216	218	216
query11	16343	15634	15498	15498
query12	118	71	69	69
query13	1678	372	378	372
query14	10573	6939	6911	6911
query15	205	178	181	178
query16	5786	257	247	247
query17	950	469	475	469
query18	1801	262	255	255
query19	179	126	124	124
query20	72	72	66	66
query21	183	128	124	124
query22	4907	4820	4811	4811
query23	31556	30914	30862	30862
query24	12612	2795	2742	2742
query25	574	304	307	304
query26	1815	146	137	137
query27	3216	284	289	284
query28	7202	1851	1836	1836
query29	1957	622	627	622
query30	281	137	130	130
query31	937	734	748	734
query32	69	47	47	47
query33	699	214	204	204
query34	1170	446	463	446
query35	863	748	734	734
query36	1361	1135	1131	1131
query37	93	59	58	58
query38	3380	3219	3276	3219
query39	1293	1262	1254	1254
query40	354	88	79	79
query41	35	35	35	35
query42	87	78	84	78
query43	495	502	481	481
query44	1063	691	687	687
query45	199	173	175	173
query46	1054	642	668	642
query47	1571	1545	1581	1545
query48	377	317	300	300
query49	1188	283	283	283
query50	678	300	314	300
query51	5329	5237	5201	5201
query52	81	76	74	74
query53	327	264	253	253
query54	242	183	177	177
query55	78	78	83	78
query56	175	169	162	162
query57	1014	929	948	929
query58	180	152	158	152
query59	2845	2504	2651	2504
query60	202	179	184	179
query61	82	81	82	81
query62	603	377	364	364
query63	275	248	257	248
query64	6128	1769	1757	1757
query65	3308	3248	3238	3238
query66	1360	318	308	308
query67	15627	15230	15188	15188
query68	12008	537	539	537
query69	929	305	282	282
query70	1677	1537	1542	1537
query71	10458	10196	10198	10196
query72	4796	2797	2819	2797
query73	2297	314	319	314
query74	6846	6439	6311	6311
query75	4937	2322	2296	2296
query76	6596	1018	995	995
query77	641	231	223	223
query78	9134	8843	8758	8758
query79	1051	493	506	493
query80	577	325	306	306
query81	449	202	200	200
query82	200	83	78	78
query83	135	114	116	114
query84	271	70	66	66
query85	1086	330	317	317
query86	390	371	370	370
query87	3575	3328	3331	3328
query88	2809	2164	2160	2160
query89	423	371	360	360
query90	1998	184	179	179
query91	154	122	137	122
query92	60	43	42	42
query93	2509	428	422	422
query94	1292	154	154	154
query95	497	455	440	440
query96	617	315	310	310
query97	4268	4109	4157	4109
query98	205	188	173	173
query99	1009	705	715	705
Total cold run time: 305928 ms
Total hot run time: 186209 ms

@doris-robot
Copy link

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

query1	0.03	0.02	0.02
query2	0.06	0.02	0.03
query3	0.22	0.05	0.05
query4	1.70	0.07	0.06
query5	0.53	0.52	0.52
query6	1.23	0.62	0.63
query7	0.02	0.02	0.01
query8	0.04	0.02	0.02
query9	0.53	0.50	0.49
query10	0.56	0.56	0.58
query11	0.12	0.09	0.08
query12	0.10	0.09	0.09
query13	0.60	0.60	0.60
query14	0.78	0.81	0.80
query15	0.79	0.78	0.77
query16	0.39	0.37	0.36
query17	0.95	1.05	1.03
query18	0.23	0.24	0.23
query19	1.88	1.79	1.79
query20	0.01	0.00	0.01
query21	15.45	0.57	0.55
query22	2.43	2.77	1.82
query23	17.16	0.87	0.76
query24	2.80	1.30	1.00
query25	0.38	0.19	0.25
query26	0.53	0.15	0.14
query27	0.04	0.05	0.05
query28	11.10	0.76	0.77
query29	12.63	3.14	3.04
query30	0.56	0.50	0.47
query31	2.79	0.33	0.34
query32	3.41	0.48	0.48
query33	3.22	3.21	3.22
query34	15.84	4.23	4.30
query35	4.32	4.23	4.29
query36	1.13	1.06	1.06
query37	0.06	0.04	0.05
query38	0.03	0.03	0.03
query39	0.02	0.02	0.02
query40	0.15	0.13	0.13
query41	0.07	0.02	0.01
query42	0.02	0.02	0.01
query43	0.02	0.02	0.02
Total cold run time: 104.93 s
Total hot run time: 30.7 s

@doris-robot
Copy link

Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G'

Load test result on commit f6a88a978ca493dd17155f06a49e583b1bcce49e with default session variables
Stream load json:         19 seconds loaded 2358488459 Bytes, about 118 MB/s
Stream load orc:          58 seconds loaded 1101869774 Bytes, about 18 MB/s
Stream load parquet:      31 seconds loaded 861443392 Bytes, about 26 MB/s
Insert into select:       14.1 seconds inserted 10000000 Rows, about 709K ops/s

@zhannngchen
Copy link
Contributor Author

run buildall

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17700	5113	5386	5113
q2	2046	144	132	132
q3	10638	1169	1143	1143
q4	10248	783	747	747
q5	7745	3183	3158	3158
q6	194	121	119	119
q7	861	491	470	470
q8	9186	1897	1953	1897
q9	7286	6410	6339	6339
q10	8202	3071	3101	3071
q11	421	202	212	202
q12	359	185	187	185
q13	17991	3347	3349	3347
q14	235	213	208	208
q15	556	503	503	503
q16	452	374	368	368
q17	944	542	521	521
q18	7647	6856	6688	6688
q19	1555	1371	1425	1371
q20	593	318	298	298
q21	2763	2432	2448	2432
q22	346	301	308	301
Total cold run time: 107968 ms
Total hot run time: 38613 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5531	5338	5188	5188
q2	324	218	209	209
q3	3346	3228	3211	3211
q4	2083	2059	2011	2011
q5	6079	5898	5845	5845
q6	199	114	116	114
q7	2291	1854	1838	1838
q8	3264	3373	3392	3373
q9	8877	8827	8715	8715
q10	3856	3837	3831	3831
q11	553	440	453	440
q12	797	622	647	622
q13	16916	3146	3129	3129
q14	281	253	271	253
q15	553	511	505	505
q16	514	476	453	453
q17	1878	1877	1825	1825
q18	9509	20047	9398	9398
q19	24302	1640	1515	1515
q20	4605	1936	1926	1926
q21	14365	5485	5238	5238
q22	984	509	588	509
Total cold run time: 111107 ms
Total hot run time: 60148 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 186518 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 826d511e746ef4f7caf0645f9c758ddcdbbe7824, data reload: false

query1	935	337	331	331
query2	6568	2057	1896	1896
query3	6707	202	196	196
query4	31414	22281	22184	22184
query5	4452	367	368	367
query6	248	161	152	152
query7	4611	269	259	259
query8	223	174	179	174
query9	8421	2528	2509	2509
query10	417	228	222	222
query11	16673	15646	15431	15431
query12	128	68	66	66
query13	1677	382	365	365
query14	10536	6957	6875	6875
query15	228	187	180	180
query16	5790	250	244	244
query17	957	470	486	470
query18	1786	254	247	247
query19	169	134	133	133
query20	72	79	71	71
query21	182	138	131	131
query22	4929	4756	4846	4756
query23	31632	31175	30773	30773
query24	11653	2877	2804	2804
query25	572	304	302	302
query26	1655	146	140	140
query27	3231	290	278	278
query28	7355	1832	1814	1814
query29	1727	637	615	615
query30	267	135	135	135
query31	951	747	738	738
query32	82	54	48	48
query33	688	207	220	207
query34	1148	454	456	454
query35	841	737	735	735
query36	1222	1224	1227	1224
query37	90	54	56	54
query38	3360	3282	3266	3266
query39	1320	1255	1274	1255
query40	340	84	81	81
query41	36	35	34	34
query42	90	82	85	82
query43	545	480	477	477
query44	1064	679	686	679
query45	190	175	170	170
query46	1079	645	666	645
query47	1657	1616	1581	1581
query48	387	297	303	297
query49	1238	290	284	284
query50	678	316	313	313
query51	5379	5176	5168	5168
query52	88	80	70	70
query53	323	248	250	248
query54	240	186	193	186
query55	78	77	79	77
query56	178	176	158	158
query57	1011	919	927	919
query58	185	149	152	149
query59	2970	2640	2681	2640
query60	213	186	177	177
query61	82	88	80	80
query62	626	345	355	345
query63	274	258	254	254
query64	6073	1771	1740	1740
query65	3342	3254	3254	3254
query66	1273	310	311	310
query67	15765	15498	15169	15169
query68	12384	528	507	507
query69	606	298	283	283
query70	1616	1484	1490	1484
query71	10468	10217	10202	10202
query72	4838	2846	2819	2819
query73	2736	329	314	314
query74	7316	6512	6505	6505
query75	5149	2319	2309	2309
query76	6661	1022	1027	1022
query77	664	227	242	227
query78	8985	8857	8557	8557
query79	1391	501	512	501
query80	579	319	305	305
query81	448	203	201	201
query82	199	80	80	80
query83	133	113	117	113
query84	275	65	67	65
query85	1090	339	316	316
query86	384	365	350	350
query87	3540	3379	3368	3368
query88	3221	2212	2216	2212
query89	423	361	352	352
query90	2014	188	180	180
query91	157	124	115	115
query92	49	45	42	42
query93	2017	428	439	428
query94	1254	153	155	153
query95	492	449	459	449
query96	638	314	325	314
query97	4254	4184	4187	4184
query98	207	183	181	181
query99	1037	692	728	692
Total cold run time: 305546 ms
Total hot run time: 186518 ms

@doris-robot
Copy link

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

query1	0.03	0.02	0.02
query2	0.06	0.02	0.02
query3	0.23	0.05	0.04
query4	1.68	0.06	0.06
query5	0.53	0.52	0.52
query6	1.27	0.64	0.63
query7	0.02	0.01	0.01
query8	0.03	0.02	0.02
query9	0.55	0.50	0.50
query10	0.56	0.53	0.56
query11	0.12	0.09	0.08
query12	0.11	0.09	0.09
query13	0.60	0.61	0.60
query14	0.77	0.81	0.81
query15	0.80	0.78	0.77
query16	0.38	0.39	0.38
query17	1.02	1.02	1.03
query18	0.24	0.23	0.24
query19	1.82	1.83	1.76
query20	0.02	0.01	0.01
query21	15.40	0.60	0.56
query22	2.54	2.74	2.20
query23	17.55	0.84	0.84
query24	2.79	0.97	0.80
query25	0.29	0.29	0.19
query26	0.56	0.14	0.14
query27	0.05	0.06	0.06
query28	11.48	0.76	0.78
query29	12.49	3.25	3.23
query30	0.54	0.47	0.46
query31	2.79	0.34	0.35
query32	3.36	0.48	0.49
query33	3.20	3.19	3.24
query34	15.76	4.30	4.27
query35	4.33	4.31	4.27
query36	1.11	1.07	1.08
query37	0.06	0.04	0.05
query38	0.04	0.03	0.03
query39	0.02	0.01	0.02
query40	0.16	0.13	0.13
query41	0.07	0.02	0.01
query42	0.03	0.02	0.01
query43	0.02	0.02	0.02
Total cold run time: 105.48 s
Total hot run time: 31.21 s

@doris-robot
Copy link

Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G'

Load test result on commit 826d511e746ef4f7caf0645f9c758ddcdbbe7824 with default session variables
Stream load json:         19 seconds loaded 2358488459 Bytes, about 118 MB/s
Stream load orc:          58 seconds loaded 1101869774 Bytes, about 18 MB/s
Stream load parquet:      31 seconds loaded 861443392 Bytes, about 26 MB/s
Insert into select:       13.5 seconds inserted 10000000 Rows, about 740K ops/s

@zhannngchen
Copy link
Contributor Author

run buildall

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17691	5323	5305	5305
q2	2034	141	125	125
q3	10643	1166	1157	1157
q4	10225	789	834	789
q5	7732	3153	3068	3068
q6	196	121	116	116
q7	856	495	478	478
q8	9226	1940	1975	1940
q9	7278	6363	6352	6352
q10	8174	3066	3047	3047
q11	409	213	203	203
q12	349	189	190	189
q13	18005	3355	3336	3336
q14	253	219	211	211
q15	534	521	503	503
q16	430	364	374	364
q17	943	557	507	507
q18	7490	6890	6775	6775
q19	1841	1321	1378	1321
q20	577	296	290	290
q21	2695	2388	2441	2388
q22	346	304	307	304
Total cold run time: 107927 ms
Total hot run time: 38768 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5547	5284	5240	5240
q2	324	224	206	206
q3	3332	3241	3263	3241
q4	2101	2064	2090	2064
q5	6004	5778	5900	5778
q6	196	114	120	114
q7	2282	1821	1883	1821
q8	3277	3373	3404	3373
q9	8956	8999	8766	8766
q10	3888	3816	3815	3815
q11	551	438	450	438
q12	748	614	601	601
q13	17238	3246	3357	3246
q14	307	265	282	265
q15	548	503	508	503
q16	523	507	487	487
q17	1876	1878	1800	1800
q18	9625	16449	9534	9534
q19	26789	1548	1470	1470
q20	4624	1937	1933	1933
q21	14445	5334	5305	5305
q22	1003	531	562	531
Total cold run time: 114184 ms
Total hot run time: 60531 ms

@doris-robot
Copy link

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

query1	940	337	326	326
query2	6559	2101	1876	1876
query3	6710	203	200	200
query4	30954	22221	22128	22128
query5	4474	446	446	446
query6	248	156	146	146
query7	4600	262	267	262
query8	228	165	176	165
query9	8360	2529	2528	2528
query10	409	220	225	220
query11	17256	15552	15482	15482
query12	117	66	66	66
query13	1671	372	383	372
query14	10544	6925	6988	6925
query15	206	177	185	177
query16	5794	257	250	250
query17	945	464	458	458
query18	1787	255	250	250
query19	170	131	132	131
query20	73	71	66	66
query21	183	134	127	127
query22	4936	4712	4457	4457
query23	31577	30915	30843	30843
query24	11591	2874	2811	2811
query25	577	307	306	306
query26	1606	148	140	140
query27	3215	283	291	283
query28	7368	1864	1811	1811
query29	1525	613	629	613
query30	273	133	132	132
query31	943	754	747	747
query32	74	48	50	48
query33	696	219	207	207
query34	1165	459	467	459
query35	915	777	782	777
query36	1344	1165	1233	1165
query37	91	61	56	56
query38	3341	3180	3244	3180
query39	1310	1263	1256	1256
query40	201	80	85	80
query41	37	35	35	35
query42	84	83	85	83
query43	508	476	479	476
query44	1071	680	689	680
query45	192	179	173	173
query46	1068	644	660	644
query47	1640	1571	1564	1564
query48	408	309	308	308
query49	1130	288	293	288
query50	677	309	305	305
query51	5303	5191	5170	5170
query52	85	80	78	78
query53	325	248	255	248
query54	238	178	183	178
query55	84	77	74	74
query56	186	164	158	158
query57	1002	925	919	919
query58	185	163	155	155
query59	2934	2689	2747	2689
query60	201	179	178	178
query61	82	87	83	83
query62	612	376	366	366
query63	278	245	260	245
query64	4999	1798	1784	1784
query65	3322	3254	3257	3254
query66	1306	320	308	308
query67	15521	15371	15133	15133
query68	12043	510	513	510
query69	608	295	298	295
query70	1639	1416	1499	1416
query71	10480	10194	10191	10191
query72	4960	2856	2836	2836
query73	2343	321	322	321
query74	6912	6376	6307	6307
query75	5026	2307	2271	2271
query76	6693	1036	1021	1021
query77	663	225	241	225
query78	9203	8913	8541	8541
query79	1017	499	500	499
query80	546	326	312	312
query81	471	200	194	194
query82	195	84	76	76
query83	132	113	111	111
query84	272	67	66	66
query85	1066	342	324	324
query86	396	384	355	355
query87	3473	3373	3375	3373
query88	2903	2220	2211	2211
query89	416	340	350	340
query90	1993	189	184	184
query91	150	119	130	119
query92	55	43	41	41
query93	1461	436	450	436
query94	1214	160	162	160
query95	510	469	455	455
query96	622	319	317	317
query97	4290	4155	4116	4116
query98	206	192	185	185
query99	1037	708	709	708
Total cold run time: 301449 ms
Total hot run time: 186064 ms

@doris-robot
Copy link

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

query1	0.04	0.03	0.02
query2	0.06	0.02	0.02
query3	0.22	0.05	0.06
query4	1.69	0.08	0.06
query5	0.54	0.53	0.52
query6	1.28	0.64	0.65
query7	0.02	0.01	0.01
query8	0.04	0.02	0.02
query9	0.54	0.50	0.50
query10	0.54	0.54	0.56
query11	0.10	0.09	0.09
query12	0.11	0.09	0.09
query13	0.61	0.61	0.60
query14	0.79	0.80	0.82
query15	0.80	0.78	0.77
query16	0.37	0.39	0.38
query17	1.02	1.00	1.00
query18	0.24	0.22	0.26
query19	1.84	1.81	1.78
query20	0.01	0.01	0.01
query21	15.40	0.59	0.57
query22	2.36	1.98	2.13
query23	17.27	0.80	0.81
query24	2.27	1.82	1.06
query25	0.36	0.19	0.17
query26	0.57	0.14	0.15
query27	0.05	0.06	0.07
query28	11.23	0.78	0.76
query29	12.50	3.11	3.16
query30	0.52	0.48	0.45
query31	2.78	0.36	0.34
query32	3.39	0.48	0.50
query33	3.22	3.27	3.18
query34	15.68	4.35	4.26
query35	4.45	4.36	4.34
query36	1.10	1.08	1.07
query37	0.06	0.05	0.05
query38	0.04	0.03	0.03
query39	0.02	0.01	0.02
query40	0.16	0.13	0.13
query41	0.07	0.01	0.02
query42	0.02	0.02	0.01
query43	0.02	0.01	0.01
Total cold run time: 104.4 s
Total hot run time: 31.14 s

@doris-robot
Copy link

Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G'

Load test result on commit de5fcd0ae61b25ca32674a1abbc54c0eb8cc9493 with default session variables
Stream load json:         19 seconds loaded 2358488459 Bytes, about 118 MB/s
Stream load orc:          58 seconds loaded 1101869774 Bytes, about 18 MB/s
Stream load parquet:      31 seconds loaded 861443392 Bytes, about 26 MB/s
Insert into select:       13.4 seconds inserted 10000000 Rows, about 746K ops/s

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

@zhannngchen zhannngchen merged commit 6936b9b into apache:master Jan 26, 2024
@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Jan 26, 2024
@github-actions
Copy link
Contributor

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

yiguolei pushed a commit that referenced this pull request Jan 27, 2024
zhannngchen added a commit that referenced this pull request Apr 11, 2024
dataroaring pushed a commit that referenced this pull request May 31, 2024
…35678)

We should save new delete bitmap in rocksdb when conflicts are handled in publish phase, which is introduced introduced by #30366
dataroaring pushed a commit that referenced this pull request Jun 1, 2024
…ict concurrent partial update (#35739)

## Proposed changes

Issue Number: close #xxx

1. In #30366 , in order to avoid that some incomplete delete bitmap left
in `txn_info->delete_bitmap` when publish failed, we make a copy of
`txn_info->delete_bitmap` before we start to compute the delete bitmap
2. this copy is not updated back to `txn_info->delete_bitmap` after
`rowset->rowset_meta()->merge_rowset_meta()` is successful
3. `txnManager::publish_txn()` saves the contents of
`txn_info->delete_bitmap` to RocksDB after the call to
`update_delete_bitmap()`, due to the issue in step 2, bitmap generated
during publish is not saved to RocksDB, so if BE restarts at this point,
this part of the incremental delete bitmap will be lost
4. it will result in duplicated keys on querying
dataroaring pushed a commit that referenced this pull request Jun 4, 2024
…ict concurrent partial update (#35739)

## Proposed changes

Issue Number: close #xxx

1. In #30366 , in order to avoid that some incomplete delete bitmap left
in `txn_info->delete_bitmap` when publish failed, we make a copy of
`txn_info->delete_bitmap` before we start to compute the delete bitmap
2. this copy is not updated back to `txn_info->delete_bitmap` after
`rowset->rowset_meta()->merge_rowset_meta()` is successful
3. `txnManager::publish_txn()` saves the contents of
`txn_info->delete_bitmap` to RocksDB after the call to
`update_delete_bitmap()`, due to the issue in step 2, bitmap generated
during publish is not saved to RocksDB, so if BE restarts at this point,
this part of the incremental delete bitmap will be lost
4. it will result in duplicated keys on querying
seawinde pushed a commit to seawinde/doris that referenced this pull request Jun 5, 2024
…ict concurrent partial update (apache#35739)

## Proposed changes

Issue Number: close #xxx

1. In apache#30366 , in order to avoid that some incomplete delete bitmap left
in `txn_info->delete_bitmap` when publish failed, we make a copy of
`txn_info->delete_bitmap` before we start to compute the delete bitmap
2. this copy is not updated back to `txn_info->delete_bitmap` after
`rowset->rowset_meta()->merge_rowset_meta()` is successful
3. `txnManager::publish_txn()` saves the contents of
`txn_info->delete_bitmap` to RocksDB after the call to
`update_delete_bitmap()`, due to the issue in step 2, bitmap generated
during publish is not saved to RocksDB, so if BE restarts at this point,
this part of the incremental delete bitmap will be lost
4. it will result in duplicated keys on querying
mongo360 pushed a commit to mongo360/doris that referenced this pull request Aug 16, 2024
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/2.0.9-merged dev/3.0.0-merged reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants