You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "kaijchen (via GitHub)" <gi...@apache.org> on 2024/01/18 07:04:37 UTC

[PR] [improve](move-memtable) only do stream stub close wait on last sink [doris]

kaijchen opened a new pull request, #30098:
URL: https://github.com/apache/doris/pull/30098

   ## Proposed changes
   
   If data distribution is not balanced among all sinks, some sink may finish very fast while others are still writing.
   The fast sinks may wait a long period of time and trigger close_wait timeout.
   
   This PR changes this behavior, the first N-1 sinks will not wait for stream close.
   Only the last one will do close wait and handle errors and commit info.
   
   ## Further comments
   
   If this is a relatively large or complex change, kick off the discussion at [dev@doris.apache.org](mailto:dev@doris.apache.org) by explaining why you chose the solution you did and what alternatives you considered, etc...
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](move-memtable) only do close wait on the last sink [doris]

Posted by "dataroaring (via GitHub)" <gi...@apache.org>.
dataroaring merged PR #30098:
URL: https://github.com/apache/doris/pull/30098


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [improve](move-memtable) only do close wait on the last sink [doris]

Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #30098:
URL: https://github.com/apache/doris/pull/30098#issuecomment-1897939536

   TeamCity be ut coverage result:
    Function Coverage: 36.69% (8658/23598) 
    Line Coverage: 28.75% (70682/245885)
    Region Coverage: 27.63% (36460/131947)
    Branch Coverage: 24.34% (18651/76616)
    Coverage Report: http://coverage.selectdb-in.cc/coverage/4c7a5bac8a62a426eeab9daa6cf18900fed1ce24_4c7a5bac8a62a426eeab9daa6cf18900fed1ce24/report/index.html


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [improve](move-memtable) only do stream stub close wait on last sink [doris]

Posted by "kaijchen (via GitHub)" <gi...@apache.org>.
kaijchen commented on PR #30098:
URL: https://github.com/apache/doris/pull/30098#issuecomment-1897917898

   run buildall


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [improve](move-memtable) only do close wait on the last sink [doris]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #30098:
URL: https://github.com/apache/doris/pull/30098#issuecomment-1897921799

   PR approved by anyone and no changes requested.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [improve](move-memtable) only do close wait on the last sink [doris]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #30098:
URL: https://github.com/apache/doris/pull/30098#issuecomment-1897921772

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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [improve](move-memtable) only do close wait on the last sink [doris]

Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #30098:
URL: https://github.com/apache/doris/pull/30098#issuecomment-1897954390

   
   <details>
   <summary>ClickBench: <b>Total hot run time: 30.25 s</b></summary>
   
   ```
   machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
   scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
   ClickBench test result on commit 4c7a5bac8a62a426eeab9daa6cf18900fed1ce24, data reload: false
   
   query1	0.03	0.03	0.03
   query2	0.06	0.02	0.02
   query3	0.23	0.05	0.06
   query4	1.70	0.07	0.07
   query5	0.54	0.52	0.53
   query6	1.31	0.64	0.63
   query7	0.02	0.02	0.01
   query8	0.04	0.02	0.02
   query9	0.56	0.50	0.50
   query10	0.57	0.55	0.55
   query11	0.12	0.09	0.08
   query12	0.11	0.10	0.09
   query13	0.60	0.60	0.61
   query14	0.75	0.78	0.78
   query15	0.80	0.77	0.78
   query16	0.39	0.36	0.38
   query17	1.03	1.03	1.00
   query18	0.26	0.22	0.25
   query19	1.86	1.75	1.73
   query20	0.01	0.00	0.01
   query21	15.43	0.59	0.60
   query22	2.46	2.90	1.89
   query23	17.11	0.95	0.79
   query24	2.95	0.88	0.45
   query25	0.42	0.14	0.23
   query26	0.46	0.13	0.14
   query27	0.05	0.07	0.05
   query28	11.62	0.76	0.77
   query29	12.53	3.17	3.16
   query30	0.52	0.50	0.55
   query31	2.78	0.34	0.34
   query32	3.38	0.48	0.48
   query33	3.24	3.26	3.21
   query34	15.78	4.26	4.20
   query35	4.34	4.22	4.22
   query36	1.10	1.06	1.09
   query37	0.06	0.05	0.05
   query38	0.03	0.02	0.02
   query39	0.02	0.01	0.01
   query40	0.19	0.13	0.13
   query41	0.08	0.01	0.01
   query42	0.02	0.01	0.02
   query43	0.03	0.02	0.02
   Total cold run time: 105.59 s
   Total hot run time: 30.25 s
   ```
   </details>
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [improve](move-memtable) only do close wait on the last sink [doris]

Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #30098:
URL: https://github.com/apache/doris/pull/30098#issuecomment-1897957880

   
   Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
   ```
   Load test result on commit 4c7a5bac8a62a426eeab9daa6cf18900fed1ce24 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
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [improve](move-memtable) only do close wait on the last sink [doris]

Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #30098:
URL: https://github.com/apache/doris/pull/30098#issuecomment-1897948445

   
   <details>
   <summary>TPC-DS: <b>Total hot run time: 177602 ms</b></summary>
   
   ```
   machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
   scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
   TPC-DS sf100 test result on commit 4c7a5bac8a62a426eeab9daa6cf18900fed1ce24, data reload: false
   
   query1	965	330	325	325
   query2	6587	1998	1825	1825
   query3	6700	202	201	201
   query4	33391	22218	22135	22135
   query5	6922	606	535	535
   query6	264	178	171	171
   query7	4597	263	251	251
   query8	234	179	174	174
   query9	8316	2531	2523	2523
   query10	417	225	214	214
   query11	16809	15496	15581	15496
   query12	120	66	67	66
   query13	1674	391	375	375
   query14	10551	6852	6876	6852
   query15	203	181	185	181
   query16	4612	232	225	225
   query17	1003	471	473	471
   query18	1796	266	256	256
   query19	174	134	130	130
   query20	70	71	64	64
   query21	186	141	134	134
   query22	4788	4610	4638	4610
   query23	31457	30924	30809	30809
   query24	11480	2855	2853	2853
   query25	578	311	301	301
   query26	1098	138	135	135
   query27	3213	263	269	263
   query28	6744	1837	1816	1816
   query29	1074	625	623	623
   query30	274	135	150	135
   query31	914	733	771	733
   query32	73	49	49	49
   query33	700	210	215	210
   query34	1150	456	470	456
   query35	883	766	793	766
   query36	1315	1244	1254	1244
   query37	95	57	62	57
   query38	3402	3250	3308	3250
   query39	1332	1283	1277	1277
   query40	201	87	87	87
   query41	38	35	35	35
   query42	91	88	84	84
   query43	490	472	456	456
   query44	1191	696	704	696
   query45	197	178	174	174
   query46	1070	639	666	639
   query47	1637	1567	1550	1550
   query48	385	323	316	316
   query49	1127	288	282	282
   query50	693	312	314	312
   query51	5359	5278	5246	5246
   query52	91	73	85	73
   query53	333	249	251	249
   query54	890	442	449	442
   query55	80	74	72	72
   query56	176	180	189	180
   query57	996	943	925	925
   query58	201	159	172	159
   query59	3036	2642	2724	2642
   query60	212	198	184	184
   query61	86	86	85	85
   query62	623	365	367	365
   query63	293	258	259	258
   query64	4839	1764	1786	1764
   query65	3379	3300	3302	3300
   query66	1216	322	313	313
   query67	15725	16196	16065	16065
   query68	15113	513	567	513
   query69	1329	328	299	299
   query70	3252	1563	1486	1486
   query71	578	214	202	202
   query72	5102	2818	2858	2818
   query73	3576	306	313	306
   query74	6983	6332	6484	6332
   query75	5220	2354	2341	2341
   query76	6264	1009	1007	1007
   query77	762	228	234	228
   query78	9519	8726	8459	8459
   query79	3486	501	497	497
   query80	649	320	312	312
   query81	463	203	202	202
   query82	201	86	78	78
   query83	159	122	116	116
   query84	278	71	69	69
   query85	1069	329	329	329
   query86	381	439	386	386
   query87	3493	3307	3328	3307
   query88	3072	2142	2140	2140
   query89	434	355	353	353
   query90	2163	180	179	179
   query91	153	124	134	124
   query92	55	43	43	43
   query93	1830	454	418	418
   query94	1244	160	160	160
   query95	509	443	452	443
   query96	610	307	314	307
   query97	4262	4122	4168	4122
   query98	208	190	188	188
   query99	977	723	694	694
   Total cold run time: 304210 ms
   Total hot run time: 177602 ms
   ```
   </details>
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [improve](move-memtable) only do close wait on the last sink [doris]

Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #30098:
URL: https://github.com/apache/doris/pull/30098#issuecomment-1897936309

   
   <details>
   <summary>TPC-H: <b>Total hot run time: 38659 ms</b></summary>
   
   ```
   machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
   scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
   Tpch sf100 test result on commit 4c7a5bac8a62a426eeab9daa6cf18900fed1ce24, data reload: false
   
   ------ Round 1 ----------------------------------
   q1	6224	5157	5404	5157
   q2	1577	148	131	131
   q3	1457	1167	1118	1118
   q4	1058	765	819	765
   q5	3123	3173	3156	3156
   q6	221	133	145	133
   q7	957	497	485	485
   q8	9207	1928	1956	1928
   q9	7214	6317	6345	6317
   q10	8279	3027	3047	3027
   q11	416	221	209	209
   q12	352	189	191	189
   q13	18001	3371	3357	3357
   q14	240	221	219	219
   q15	542	513	510	510
   q16	428	372	377	372
   q17	937	539	510	510
   q18	7656	6847	6803	6803
   q19	3482	1402	1362	1362
   q20	536	285	303	285
   q21	2737	2332	2483	2332
   q22	368	301	294	294
   Total cold run time: 75012 ms
   Total hot run time: 38659 ms
   
   ----- Round 2, with runtime_filter_mode=off -----
   q1	5469	5190	5329	5190
   q2	321	223	209	209
   q3	3353	3261	3235	3235
   q4	2068	2075	2013	2013
   q5	6074	5926	6058	5926
   q6	209	114	123	114
   q7	2386	1832	1877	1832
   q8	3214	3378	3407	3378
   q9	9271	8862	8817	8817
   q10	3982	3979	3852	3852
   q11	566	462	451	451
   q12	803	657	633	633
   q13	16927	3193	3136	3136
   q14	282	251	269	251
   q15	555	505	495	495
   q16	509	470	475	470
   q17	3135	1863	1827	1827
   q18	9514	14946	9577	9577
   q19	23710	1611	1520	1520
   q20	4582	1952	1919	1919
   q21	15803	5370	5420	5370
   q22	2905	546	592	546
   Total cold run time: 115638 ms
   Total hot run time: 60761 ms
   ```
   </details>
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org