Skip to content

Conversation

@wuwenchi
Copy link
Contributor

@wuwenchi wuwenchi commented Sep 12, 2024

Proposed changes

  1. Concurrency issues:
    a. One thread is performing a refresh catalog action.
    b. One thread is performing an insert table action, and after completion, it executes a refresh table action.

The partitionCache will be refreshed only if the corresponding table exists in the partitionValuesCache. However, the partitionValuesCache may have been refreshed by the refresh catalog, resulting in the inability to find the corresponding table through the partitionValuesCache, resulting in the partitionCache not being refreshed.
Similarly, the fileCacheRef may not be refreshed either.
Therefore, directly search for all keys to match to prevent them from being refreshed.

  1. No need to perform refreshAfterWriteSec operation on partitionCache.
  2. Increase the thread pool size.

@wuwenchi wuwenchi force-pushed the fix-hms-cache-consist branch from de5bd4e to da56e9b Compare September 12, 2024 07:28
@doris-robot
Copy link

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@wuwenchi
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	18059	4441	4302	4302
q2	2605	208	191	191
q3	11053	1407	1393	1393
q4	10683	1036	1107	1036
q5	7824	3332	3260	3260
q6	234	146	145	145
q7	1069	673	653	653
q8	9474	2107	2058	2058
q9	6895	6332	6332	6332
q10	7024	2510	2482	2482
q11	445	265	263	263
q12	413	240	235	235
q13	17758	3084	3030	3030
q14	287	256	253	253
q15	560	507	499	499
q16	528	417	431	417
q17	1016	992	975	975
q18	7422	6768	6931	6768
q19	1387	1244	1250	1244
q20	630	358	334	334
q21	4103	3626	3604	3604
q22	1130	1023	1024	1023
Total cold run time: 110599 ms
Total hot run time: 40497 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4207	4256	4235	4235
q2	353	235	235	235
q3	2962	2937	2918	2918
q4	1975	1975	1976	1975
q5	5458	5471	5446	5446
q6	218	135	134	134
q7	2043	1685	1675	1675
q8	3284	3325	3323	3323
q9	8516	8478	8486	8478
q10	3408	3459	3460	3459
q11	574	456	471	456
q12	781	642	595	595
q13	7136	3074	3060	3060
q14	298	263	267	263
q15	546	488	486	486
q16	485	447	443	443
q17	1774	1710	1655	1655
q18	8005	7805	7709	7709
q19	1745	1721	1707	1707
q20	2047	1795	1800	1795
q21	5688	5675	5567	5567
q22	1083	999	1031	999
Total cold run time: 62586 ms
Total hot run time: 56613 ms

@doris-robot
Copy link

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

query1	924	377	400	377
query2	6506	1731	1655	1655
query3	6656	212	223	212
query4	27027	23839	24102	23839
query5	5110	546	533	533
query6	259	184	176	176
query7	4595	311	314	311
query8	289	229	228	228
query9	8499	2473	2460	2460
query10	453	285	275	275
query11	16185	15388	15581	15388
query12	154	104	103	103
query13	1688	416	374	374
query14	11481	6327	7099	6327
query15	210	165	178	165
query16	7555	455	456	455
query17	1519	559	568	559
query18	1923	286	282	282
query19	194	148	148	148
query20	122	108	109	108
query21	231	104	105	104
query22	4486	4585	4478	4478
query23	34311	33900	33728	33728
query24	9404	3125	3097	3097
query25	610	389	402	389
query26	725	158	157	157
query27	2138	278	290	278
query28	5205	2049	2007	2007
query29	869	429	426	426
query30	303	164	157	157
query31	1001	779	839	779
query32	106	63	58	58
query33	643	302	309	302
query34	883	492	508	492
query35	892	758	719	719
query36	1059	886	897	886
query37	144	87	84	84
query38	4004	3900	3950	3900
query39	1453	1436	1417	1417
query40	206	117	115	115
query41	51	48	49	48
query42	119	101	99	99
query43	489	445	427	427
query44	1162	781	757	757
query45	201	172	178	172
query46	1108	817	792	792
query47	1931	1827	1826	1826
query48	363	300	299	299
query49	1084	464	464	464
query50	932	448	445	445
query51	7203	6905	6970	6905
query52	105	88	91	88
query53	267	200	190	190
query54	825	482	479	479
query55	82	82	80	80
query56	295	278	297	278
query57	1242	1122	1112	1112
query58	250	278	254	254
query59	2697	2646	2576	2576
query60	323	297	291	291
query61	126	120	122	120
query62	931	661	704	661
query63	224	194	189	189
query64	5624	772	735	735
query65	3251	3201	3222	3201
query66	1428	369	364	364
query67	16073	15547	15709	15547
query68	3188	877	868	868
query69	448	349	332	332
query70	1178	1138	1127	1127
query71	348	346	352	346
query72	6189	3348	3416	3348
query73	582	589	578	578
query74	9317	9019	8969	8969
query75	3159	3020	3025	3020
query76	1969	846	849	846
query77	436	404	414	404
query78	9399	9347	9422	9347
query79	921	879	878	878
query80	830	827	815	815
query81	453	274	265	265
query82	272	273	272	272
query83	196	197	195	195
query84	232	117	109	109
query85	693	408	398	398
query86	321	317	331	317
query87	4468	4319	4447	4319
query88	4090	4046	4012	4012
query89	373	369	368	368
query90	1285	319	308	308
query91	123	124	123	123
query92	81	106	76	76
query93	1034	1060	1032	1032
query94	625	361	383	361
query95	469	425	421	421
query96	476	466	466	466
query97	3118	3102	3130	3102
query98	224	237	230	230
query99	1558	1342	1314	1314
Total cold run time: 276463 ms
Total hot run time: 194513 ms

@doris-robot
Copy link

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

query1	0.05	0.04	0.04
query2	0.08	0.04	0.04
query3	0.22	0.05	0.05
query4	1.67	0.06	0.06
query5	0.50	0.50	0.51
query6	1.16	0.74	0.72
query7	0.02	0.01	0.02
query8	0.05	0.05	0.04
query9	0.57	0.53	0.52
query10	0.60	0.56	0.58
query11	0.16	0.12	0.12
query12	0.15	0.12	0.12
query13	0.63	0.61	0.61
query14	1.47	1.48	1.48
query15	0.91	0.87	0.86
query16	0.38	0.37	0.36
query17	1.03	1.05	1.02
query18	0.22	0.20	0.22
query19	1.92	1.80	1.83
query20	0.01	0.00	0.01
query21	15.43	0.68	0.68
query22	3.86	7.63	1.32
query23	18.16	1.41	1.33
query24	2.19	0.23	0.23
query25	0.19	0.08	0.09
query26	0.30	0.19	0.17
query27	0.08	0.08	0.08
query28	13.17	1.01	0.98
query29	12.53	3.35	3.35
query30	0.24	0.05	0.06
query31	2.87	0.42	0.41
query32	3.24	0.49	0.50
query33	3.02	3.06	3.08
query34	15.45	4.36	4.36
query35	4.38	4.38	4.40
query36	0.68	0.50	0.48
query37	0.18	0.17	0.16
query38	0.15	0.16	0.15
query39	0.05	0.05	0.04
query40	0.18	0.14	0.14
query41	0.10	0.05	0.05
query42	0.05	0.04	0.06
query43	0.05	0.04	0.05
Total cold run time: 108.35 s
Total hot run time: 31.18 s

@wuwenchi
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17583	7372	7196	7196
q2	2034	176	185	176
q3	10475	1262	1416	1262
q4	10514	939	975	939
q5	7713	3165	3124	3124
q6	238	149	151	149
q7	1032	629	626	626
q8	9450	1999	2037	1999
q9	6743	6289	6307	6289
q10	7028	2506	2520	2506
q11	431	251	245	245
q12	413	223	221	221
q13	17745	3007	2999	2999
q14	293	248	247	247
q15	579	527	528	527
q16	506	423	415	415
q17	987	940	953	940
q18	7371	6830	6792	6792
q19	1386	1229	1232	1229
q20	604	336	319	319
q21	3893	3496	3500	3496
q22	1083	997	986	986
Total cold run time: 108101 ms
Total hot run time: 42682 ms

----- Round 2, with runtime_filter_mode=off -----
q1	7207	7150	7154	7150
q2	342	235	248	235
q3	3094	3124	3012	3012
q4	2192	2142	2103	2103
q5	5690	5575	5678	5575
q6	245	147	148	147
q7	2126	1786	1770	1770
q8	3377	3421	3414	3414
q9	8778	8881	8799	8799
q10	3489	3584	3566	3566
q11	597	481	469	469
q12	797	607	650	607
q13	8920	3195	3178	3178
q14	321	282	311	282
q15	588	537	544	537
q16	501	455	470	455
q17	1774	1708	1763	1708
q18	8449	8110	8117	8110
q19	1775	1750	1736	1736
q20	2140	1916	1884	1884
q21	5903	5521	5707	5521
q22	1122	1037	1014	1014
Total cold run time: 69427 ms
Total hot run time: 61272 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 199911 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 76adbce7e054f29131253cf752582eac49e528c7, data reload: false

query1	1259	869	898	869
query2	6256	1867	1813	1813
query3	10674	3929	3901	3901
query4	54810	25005	24085	24085
query5	5042	528	524	524
query6	327	168	172	168
query7	5623	308	300	300
query8	274	226	243	226
query9	6056	2579	2576	2576
query10	389	290	306	290
query11	16075	15496	15558	15496
query12	160	106	98	98
query13	1409	401	381	381
query14	10327	6917	7291	6917
query15	214	175	176	175
query16	7001	485	512	485
query17	1163	599	580	580
query18	1887	302	298	298
query19	211	156	155	155
query20	125	116	114	114
query21	214	106	107	106
query22	4615	4573	4444	4444
query23	34468	34151	33622	33622
query24	6143	3099	3065	3065
query25	520	408	414	408
query26	618	162	159	159
query27	1567	282	283	282
query28	2836	2106	2085	2085
query29	681	440	436	436
query30	231	156	163	156
query31	964	764	751	751
query32	72	54	52	52
query33	463	306	300	300
query34	888	493	475	475
query35	862	745	749	745
query36	1038	895	932	895
query37	147	85	83	83
query38	3898	3847	3933	3847
query39	1447	1426	1397	1397
query40	206	115	118	115
query41	49	49	48	48
query42	124	96	98	96
query43	511	462	447	447
query44	1185	792	793	792
query45	203	167	173	167
query46	1096	853	818	818
query47	1881	1787	1807	1787
query48	381	294	298	294
query49	739	452	450	450
query50	936	448	438	438
query51	7042	6923	6898	6898
query52	105	186	86	86
query53	251	181	180	180
query54	563	468	468	468
query55	81	78	75	75
query56	279	258	267	258
query57	1199	1023	1079	1023
query58	237	229	227	227
query59	2780	2768	2797	2768
query60	293	281	275	275
query61	102	100	111	100
query62	799	659	669	659
query63	226	190	180	180
query64	1593	679	684	679
query65	3250	3155	3171	3155
query66	679	286	298	286
query67	15718	15569	15609	15569
query68	1886	868	865	865
query69	437	335	339	335
query70	1134	1146	1164	1146
query71	363	355	345	345
query72	6215	3525	3354	3354
query73	593	582	587	582
query74	9293	9077	9183	9077
query75	3067	2971	3018	2971
query76	1086	859	852	852
query77	516	403	396	396
query78	9532	9302	9327	9302
query79	908	887	860	860
query80	850	825	819	819
query81	502	255	266	255
query82	265	267	260	260
query83	215	190	185	185
query84	264	108	106	106
query85	652	419	395	395
query86	339	319	306	306
query87	4309	4424	4373	4373
query88	4233	4175	4197	4175
query89	378	376	371	371
query90	1695	314	308	308
query91	123	121	125	121
query92	77	75	77	75
query93	1050	1052	1046	1046
query94	627	380	395	380
query95	447	434	423	423
query96	479	480	478	478
query97	3160	3217	3124	3124
query98	226	244	230	230
query99	1647	1299	1301	1299
Total cold run time: 290030 ms
Total hot run time: 199911 ms

@doris-robot
Copy link

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

query1	0.05	0.05	0.04
query2	0.07	0.05	0.04
query3	0.22	0.04	0.04
query4	1.68	0.06	0.06
query5	0.50	0.50	0.50
query6	1.14	0.73	0.74
query7	0.02	0.02	0.02
query8	0.05	0.04	0.04
query9	0.55	0.51	0.51
query10	0.58	0.59	0.56
query11	0.16	0.12	0.11
query12	0.15	0.13	0.13
query13	0.62	0.61	0.60
query14	1.49	1.48	1.52
query15	0.91	0.88	0.88
query16	0.36	0.36	0.36
query17	1.02	1.02	1.02
query18	0.16	0.16	0.16
query19	1.93	1.75	1.78
query20	0.02	0.01	0.01
query21	15.40	0.66	0.66
query22	4.12	6.12	1.69
query23	17.76	1.36	1.25
query24	2.23	0.22	0.21
query25	0.18	0.08	0.08
query26	0.28	0.19	0.18
query27	0.07	0.07	0.07
query28	13.18	1.13	1.11
query29	12.62	3.37	3.32
query30	0.24	0.05	0.06
query31	2.85	0.41	0.41
query32	3.24	0.49	0.50
query33	3.06	3.03	3.08
query34	15.44	4.31	4.35
query35	4.34	4.33	4.34
query36	0.70	0.48	0.48
query37	0.19	0.17	0.16
query38	0.17	0.16	0.15
query39	0.05	0.04	0.04
query40	0.16	0.13	0.14
query41	0.11	0.05	0.05
query42	0.06	0.06	0.04
query43	0.05	0.04	0.04
Total cold run time: 108.18 s
Total hot run time: 31.32 s

Copy link
Contributor

@morningman morningman left a comment

Choose a reason for hiding this comment

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

Please add FE UT for invalidateTableCache()

@wuwenchi
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17589	7202	7110	7110
q2	2045	164	153	153
q3	10983	1154	1289	1154
q4	10421	820	835	820
q5	7735	3103	3146	3103
q6	231	149	147	147
q7	1014	623	604	604
q8	9423	1986	2001	1986
q9	6843	6419	6397	6397
q10	7059	2340	2365	2340
q11	433	244	243	243
q12	404	216	214	214
q13	17777	2963	2973	2963
q14	242	216	226	216
q15	556	506	512	506
q16	522	411	409	409
q17	968	911	918	911
q18	7299	6744	6636	6636
q19	1382	1210	1202	1202
q20	574	283	287	283
q21	3884	3379	3355	3355
q22	1099	1025	1015	1015
Total cold run time: 108483 ms
Total hot run time: 41767 ms

----- Round 2, with runtime_filter_mode=off -----
q1	7091	7079	7103	7079
q2	325	235	231	231
q3	3016	3060	3060	3060
q4	1982	1993	1982	1982
q5	5563	5614	5573	5573
q6	238	150	147	147
q7	2181	1792	1740	1740
q8	3282	3375	3399	3375
q9	8768	8879	8731	8731
q10	3553	3458	3527	3458
q11	589	477	479	477
q12	803	598	628	598
q13	9249	3183	3138	3138
q14	313	268	267	267
q15	562	512	532	512
q16	528	490	467	467
q17	1770	1728	1732	1728
q18	8274	8104	8194	8104
q19	1720	1689	1718	1689
q20	2120	1877	1875	1875
q21	5555	5182	5187	5182
q22	1137	1052	1009	1009
Total cold run time: 68619 ms
Total hot run time: 60422 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 197751 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 41ab2a659059a3a6a9846f91bda6164e27b86ae5, data reload: false

query1	1277	889	903	889
query2	6257	1706	1763	1706
query3	10818	3953	3812	3812
query4	54490	25884	23972	23972
query5	5373	514	486	486
query6	397	160	170	160
query7	5764	315	302	302
query8	292	224	232	224
query9	7778	2583	2581	2581
query10	485	305	275	275
query11	16807	15636	15544	15544
query12	153	109	97	97
query13	1513	433	419	419
query14	10617	6496	6908	6496
query15	205	181	185	181
query16	6924	488	507	488
query17	1135	580	591	580
query18	1748	308	301	301
query19	197	145	150	145
query20	121	108	107	107
query21	203	101	103	101
query22	4712	4371	4491	4371
query23	34608	34133	33772	33772
query24	6137	3045	3049	3045
query25	497	377	391	377
query26	614	155	157	155
query27	1604	285	294	285
query28	2829	2080	2050	2050
query29	671	412	412	412
query30	222	145	151	145
query31	946	740	785	740
query32	74	51	52	51
query33	432	287	286	286
query34	874	475	486	475
query35	861	751	728	728
query36	1024	918	902	902
query37	132	78	79	78
query38	4034	3930	3904	3904
query39	1444	1443	1403	1403
query40	205	92	93	92
query41	49	45	46	45
query42	128	92	99	92
query43	481	455	450	450
query44	1215	791	775	775
query45	192	170	159	159
query46	1081	850	809	809
query47	1891	1768	1824	1768
query48	447	350	366	350
query49	698	429	412	412
query50	916	437	448	437
query51	6971	6954	6839	6839
query52	95	86	86	86
query53	250	175	180	175
query54	561	461	473	461
query55	78	77	77	77
query56	276	259	259	259
query57	1237	1070	1100	1070
query58	230	242	233	233
query59	2779	2557	2536	2536
query60	287	273	274	273
query61	105	104	103	103
query62	760	680	677	677
query63	220	192	182	182
query64	1463	664	643	643
query65	3246	3147	3147	3147
query66	667	292	292	292
query67	15996	15482	15453	15453
query68	1864	855	854	854
query69	450	337	350	337
query70	1139	1137	1151	1137
query71	336	335	331	331
query72	4476	3568	3331	3331
query73	596	575	580	575
query74	9170	9146	9134	9134
query75	2991	2918	2927	2918
query76	891	836	820	820
query77	355	350	352	350
query78	9271	9248	9299	9248
query79	912	880	856	856
query80	614	568	581	568
query81	435	236	238	236
query82	194	186	193	186
query83	159	160	152	152
query84	202	106	104	104
query85	626	379	363	363
query86	299	309	311	309
query87	4417	4440	4286	4286
query88	4047	3965	3966	3965
query89	357	356	355	355
query90	710	298	291	291
query91	166	160	168	160
query92	75	71	77	71
query93	1006	1008	1008	1008
query94	386	376	358	358
query95	450	411	415	411
query96	467	456	459	456
query97	3145	3110	3215	3110
query98	224	224	231	224
query99	1329	1307	1310	1307
Total cold run time: 288552 ms
Total hot run time: 197751 ms

@doris-robot
Copy link

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

query1	0.05	0.04	0.04
query2	0.06	0.03	0.03
query3	0.22	0.06	0.06
query4	1.64	0.10	0.10
query5	0.51	0.49	0.50
query6	1.15	0.74	0.72
query7	0.02	0.02	0.01
query8	0.03	0.03	0.02
query9	0.56	0.53	0.51
query10	0.57	0.60	0.56
query11	0.14	0.10	0.10
query12	0.14	0.11	0.11
query13	0.61	0.60	0.60
query14	1.46	1.49	1.46
query15	0.89	0.86	0.86
query16	0.36	0.37	0.37
query17	1.04	1.04	1.03
query18	0.18	0.20	0.18
query19	1.92	1.75	1.79
query20	0.01	0.01	0.01
query21	15.69	0.56	0.56
query22	3.08	3.85	3.25
query23	17.67	1.07	1.03
query24	2.34	0.27	0.28
query25	0.34	0.13	0.03
query26	0.15	0.14	0.14
query27	0.04	0.03	0.03
query28	12.19	1.00	0.98
query29	12.58	3.26	3.26
query30	0.25	0.05	0.06
query31	2.87	0.39	0.37
query32	3.27	0.47	0.45
query33	3.02	3.00	3.05
query34	15.46	4.32	4.28
query35	4.35	4.34	4.27
query36	0.69	0.49	0.47
query37	0.08	0.05	0.05
query38	0.04	0.03	0.03
query39	0.03	0.02	0.02
query40	0.15	0.12	0.12
query41	0.07	0.02	0.02
query42	0.03	0.02	0.02
query43	0.03	0.02	0.02
Total cold run time: 105.98 s
Total hot run time: 31.73 s

@wuwenchi
Copy link
Contributor Author

run feut

@wuwenchi
Copy link
Contributor Author

run p0

Copy link
Contributor

@morningman morningman 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 the approved Indicates a PR has been approved by one committer. label Sep 18, 2024
@github-actions
Copy link
Contributor

PR approved by anyone and no changes requested.

Copy link
Contributor

@kaka11chen kaka11chen left a comment

Choose a reason for hiding this comment

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

LGTM

@morningman morningman merged commit 5491960 into apache:master Sep 18, 2024
wuwenchi added a commit to wuwenchi/doris that referenced this pull request Sep 20, 2024
## Proposed changes


1. Concurrency issues:
a. One thread is performing a refresh catalog action.
b. One thread is performing an insert table action, and after
completion, it executes a refresh table action.

The `partitionCache` will be refreshed only if the corresponding table
exists in the `partitionValuesCache`. However, the
`partitionValuesCache` may have been refreshed by the `refresh catalog`,
resulting in the inability to find the corresponding table through the
`partitionValuesCache`, resulting in the `partitionCache` not being
refreshed.
Similarly, the `fileCacheRef` may not be refreshed either.
Therefore, directly search for all keys to match to prevent them from
being refreshed.

2. No need to perform refreshAfterWriteSec operation on partitionCache.
3. Increase the thread pool size.
morningman pushed a commit that referenced this pull request Sep 20, 2024
dataroaring pushed a commit that referenced this pull request Sep 29, 2024
## Proposed changes


1. Concurrency issues:
a. One thread is performing a refresh catalog action.
b. One thread is performing an insert table action, and after
completion, it executes a refresh table action.

The `partitionCache` will be refreshed only if the corresponding table
exists in the `partitionValuesCache`. However, the
`partitionValuesCache` may have been refreshed by the `refresh catalog`,
resulting in the inability to find the corresponding table through the
`partitionValuesCache`, resulting in the `partitionCache` not being
refreshed.
Similarly, the `fileCacheRef` may not be refreshed either.
Therefore, directly search for all keys to match to prevent them from
being refreshed.

2. No need to perform refreshAfterWriteSec operation on partitionCache.
3. Increase the thread pool size.
@gavinchou gavinchou mentioned this pull request Oct 13, 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.1.7-merged dev/3.0.2-merged p0_b reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants