Skip to content

Conversation

@deardeng
Copy link
Contributor

@deardeng deardeng commented Aug 20, 2025

What problem does this PR solve?

Add db lock to protect rename db editlog, and when writing create table editlog, check whether the db name has been modified. If the db name has been modified, the table creation statement will report an error.

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 Aug 20, 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?

@deardeng deardeng force-pushed the fix-rename-db-lock branch 2 times, most recently from c4d3eaa to 379816c Compare August 25, 2025 04:07
@deardeng
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17582	5317	5087	5087
q2	1922	280	176	176
q3	10329	1281	733	733
q4	10211	982	551	551
q5	7523	2387	2304	2304
q6	176	156	129	129
q7	890	756	595	595
q8	9297	1292	1137	1137
q9	6832	5087	5122	5087
q10	6910	2380	1959	1959
q11	491	302	284	284
q12	351	373	233	233
q13	17783	3661	3036	3036
q14	227	232	218	218
q15	555	489	472	472
q16	430	418	373	373
q17	601	856	364	364
q18	7438	7059	6938	6938
q19	1249	948	573	573
q20	349	332	225	225
q21	4021	3224	2430	2430
q22	1074	1060	1003	1003
Total cold run time: 106241 ms
Total hot run time: 33907 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5200	5125	5179	5125
q2	241	325	226	226
q3	2157	2724	2293	2293
q4	1365	1760	1318	1318
q5	4180	4448	4469	4448
q6	215	178	134	134
q7	2025	1979	1778	1778
q8	2652	2497	2607	2497
q9	7380	7208	7371	7208
q10	3084	3341	2893	2893
q11	575	533	529	529
q12	729	833	649	649
q13	3612	4105	3261	3261
q14	297	303	280	280
q15	510	465	465	465
q16	424	514	446	446
q17	1237	1605	1382	1382
q18	7793	7768	7513	7513
q19	846	875	932	875
q20	1997	1936	1814	1814
q21	4839	4424	4327	4327
q22	1104	1045	1027	1027
Total cold run time: 52462 ms
Total hot run time: 50488 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 184134 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 379816c5856977390e00c7c2da37f262d18f59ea, data reload: false

query1	964	389	412	389
query2	6607	1800	1753	1753
query3	6763	236	219	219
query4	26259	23975	23341	23341
query5	4478	624	486	486
query6	306	220	209	209
query7	4640	492	282	282
query8	270	236	225	225
query9	8678	2872	2880	2872
query10	514	321	271	271
query11	15828	15062	14715	14715
query12	150	114	117	114
query13	1639	537	401	401
query14	8754	5723	5688	5688
query15	213	178	161	161
query16	7203	630	486	486
query17	1178	683	574	574
query18	1975	405	301	301
query19	187	180	155	155
query20	132	117	114	114
query21	215	126	109	109
query22	4027	4202	4053	4053
query23	33657	32785	32822	32785
query24	8244	2366	2360	2360
query25	611	475	405	405
query26	1237	268	161	161
query27	2759	503	337	337
query28	4379	2242	2217	2217
query29	761	548	479	479
query30	283	221	194	194
query31	879	794	715	715
query32	76	71	73	71
query33	563	369	327	327
query34	774	838	504	504
query35	785	867	734	734
query36	990	1008	935	935
query37	112	108	86	86
query38	3985	4052	4043	4043
query39	1510	1432	1413	1413
query40	221	124	113	113
query41	58	57	53	53
query42	117	107	107	107
query43	489	495	458	458
query44	1344	843	862	843
query45	173	167	160	160
query46	846	998	634	634
query47	1773	1824	1717	1717
query48	373	411	310	310
query49	738	474	393	393
query50	645	679	382	382
query51	4090	4121	4052	4052
query52	111	111	98	98
query53	236	255	194	194
query54	589	575	509	509
query55	91	84	88	84
query56	317	302	281	281
query57	1178	1196	1152	1152
query58	283	255	301	255
query59	2602	2667	2572	2572
query60	342	328	330	328
query61	120	131	128	128
query62	815	708	696	696
query63	228	188	189	188
query64	4349	1019	695	695
query65	4261	4211	4194	4194
query66	1134	401	310	310
query67	15607	15263	15154	15154
query68	5363	919	579	579
query69	491	337	279	279
query70	1148	1111	1039	1039
query71	399	337	295	295
query72	5554	4741	4878	4741
query73	687	656	356	356
query74	8955	9100	8593	8593
query75	3088	3051	2591	2591
query76	3199	1132	729	729
query77	506	405	324	324
query78	9565	9663	8843	8843
query79	1604	831	582	582
query80	751	546	455	455
query81	469	249	223	223
query82	388	136	104	104
query83	256	246	239	239
query84	250	108	93	93
query85	778	370	331	331
query86	318	305	284	284
query87	4160	4241	4184	4184
query88	2780	2213	2196	2196
query89	383	319	280	280
query90	1744	213	256	213
query91	141	147	114	114
query92	71	73	63	63
query93	1181	994	639	639
query94	685	420	316	316
query95	392	308	300	300
query96	478	595	283	283
query97	2591	2649	2592	2592
query98	246	229	210	210
query99	1314	1406	1320	1320
Total cold run time: 265650 ms
Total hot run time: 184134 ms

@doris-robot
Copy link

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

query1	0.04	0.03	0.04
query2	0.08	0.05	0.04
query3	0.24	0.08	0.07
query4	1.62	0.11	0.10
query5	0.44	0.43	0.39
query6	1.14	0.62	0.64
query7	0.02	0.02	0.02
query8	0.05	0.04	0.04
query9	0.61	0.52	0.51
query10	0.57	0.58	0.57
query11	0.16	0.12	0.12
query12	0.15	0.11	0.11
query13	0.63	0.62	0.61
query14	0.79	0.83	0.83
query15	0.89	0.85	0.84
query16	0.38	0.41	0.38
query17	1.05	1.08	1.04
query18	0.21	0.20	0.20
query19	1.92	1.77	1.86
query20	0.01	0.01	0.01
query21	15.40	0.96	0.57
query22	0.80	1.12	0.72
query23	14.88	1.41	0.65
query24	6.69	1.49	0.40
query25	0.52	0.32	0.15
query26	0.58	0.15	0.13
query27	0.06	0.05	0.05
query28	10.42	0.95	0.42
query29	12.52	3.86	3.23
query30	3.04	3.07	2.90
query31	2.82	0.58	0.37
query32	3.24	0.56	0.46
query33	3.06	3.13	3.10
query34	15.94	5.48	4.84
query35	4.91	4.83	4.97
query36	0.70	0.49	0.50
query37	0.09	0.07	0.07
query38	0.05	0.04	0.04
query39	0.03	0.02	0.02
query40	0.19	0.15	0.15
query41	0.07	0.03	0.03
query42	0.04	0.03	0.02
query43	0.04	0.03	0.04
Total cold run time: 107.09 s
Total hot run time: 31.97 s

@deardeng
Copy link
Contributor Author

run buildall

1 similar comment
@deardeng
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17580	5242	5044	5044
q2	1918	290	180	180
q3	10323	1273	726	726
q4	10215	1014	511	511
q5	7510	2429	2279	2279
q6	181	160	127	127
q7	922	740	622	622
q8	9311	1287	1103	1103
q9	6966	5136	5112	5112
q10	6948	2371	1963	1963
q11	478	295	259	259
q12	344	344	219	219
q13	17775	3655	3047	3047
q14	226	235	210	210
q15	565	480	473	473
q16	426	424	363	363
q17	601	853	362	362
q18	7451	7143	6939	6939
q19	1115	947	570	570
q20	353	340	223	223
q21	3951	3231	2325	2325
q22	1082	1028	978	978
Total cold run time: 106241 ms
Total hot run time: 33635 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5172	5037	5117	5037
q2	248	325	219	219
q3	2161	2660	2298	2298
q4	1364	1752	1318	1318
q5	4158	4428	4568	4428
q6	214	173	128	128
q7	2046	1961	1840	1840
q8	2568	2472	2606	2472
q9	7448	7262	7274	7262
q10	3061	3370	2873	2873
q11	589	534	494	494
q12	688	764	622	622
q13	3474	3887	3175	3175
q14	279	315	289	289
q15	533	492	471	471
q16	461	510	495	495
q17	1211	1536	1405	1405
q18	7973	7847	7747	7747
q19	851	801	861	801
q20	1929	1960	1831	1831
q21	4731	4370	4358	4358
q22	1085	1044	992	992
Total cold run time: 52244 ms
Total hot run time: 50555 ms

@hello-stephen
Copy link
Contributor

FE UT Coverage Report

Increment line coverage 18.95% (18/95) 🎉
Increment coverage report
Complete coverage report

@doris-robot
Copy link

TPC-DS: Total hot run time: 184835 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 378805567feb75753559617dfcf3b335509464d8, data reload: false

query1	1002	381	409	381
query2	6510	1731	1716	1716
query3	6738	223	214	214
query4	26364	23715	23333	23333
query5	4408	618	486	486
query6	308	216	209	209
query7	4632	500	283	283
query8	273	240	213	213
query9	8602	2849	2853	2849
query10	478	320	277	277
query11	16183	14989	14698	14698
query12	150	110	106	106
query13	1650	554	421	421
query14	9133	5734	5720	5720
query15	206	185	174	174
query16	7311	658	464	464
query17	1208	734	614	614
query18	1997	431	323	323
query19	201	204	172	172
query20	129	120	117	117
query21	214	126	107	107
query22	4235	4197	4090	4090
query23	33710	33050	33007	33007
query24	8171	2379	2369	2369
query25	534	478	407	407
query26	1233	275	157	157
query27	2757	503	347	347
query28	4375	2241	2217	2217
query29	756	562	446	446
query30	287	222	187	187
query31	897	846	736	736
query32	86	71	78	71
query33	563	373	345	345
query34	813	838	494	494
query35	776	823	773	773
query36	975	1031	908	908
query37	119	102	85	85
query38	4126	4021	3939	3939
query39	1475	1409	1407	1407
query40	213	124	114	114
query41	60	58	55	55
query42	120	108	108	108
query43	480	524	474	474
query44	1336	853	846	846
query45	175	167	163	163
query46	855	1017	648	648
query47	1751	1811	1718	1718
query48	405	405	312	312
query49	719	466	428	428
query50	653	683	389	389
query51	4099	4167	4077	4077
query52	127	105	100	100
query53	240	253	202	202
query54	592	580	514	514
query55	88	80	85	80
query56	312	305	303	303
query57	1187	1198	1115	1115
query58	278	261	267	261
query59	2666	2754	2616	2616
query60	356	332	329	329
query61	133	130	139	130
query62	807	731	643	643
query63	220	184	185	184
query64	4349	1026	739	739
query65	4294	4195	4231	4195
query66	1155	426	333	333
query67	15420	15202	15177	15177
query68	7978	904	578	578
query69	475	306	289	289
query70	1248	1178	1124	1124
query71	448	322	306	306
query72	5777	4749	4757	4749
query73	796	628	358	358
query74	8894	8656	8912	8656
query75	3817	3099	2583	2583
query76	3653	1134	738	738
query77	795	384	318	318
query78	9730	9785	8962	8962
query79	2190	839	584	584
query80	604	536	472	472
query81	489	254	219	219
query82	454	131	106	106
query83	260	247	235	235
query84	248	104	85	85
query85	780	365	336	336
query86	388	333	291	291
query87	4294	4197	4163	4163
query88	3413	2217	2221	2217
query89	387	308	299	299
query90	1892	231	222	222
query91	137	138	113	113
query92	83	66	66	66
query93	1671	1011	648	648
query94	664	398	300	300
query95	398	315	306	306
query96	489	584	277	277
query97	2633	2701	2574	2574
query98	243	216	210	210
query99	1440	1424	1336	1336
Total cold run time: 273443 ms
Total hot run time: 184835 ms

@doris-robot
Copy link

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

query1	0.05	0.04	0.04
query2	0.09	0.05	0.04
query3	0.24	0.07	0.08
query4	1.61	0.11	0.11
query5	0.41	0.41	0.40
query6	1.17	0.64	0.64
query7	0.03	0.02	0.02
query8	0.04	0.03	0.04
query9	0.61	0.53	0.52
query10	0.57	0.56	0.57
query11	0.16	0.11	0.10
query12	0.15	0.12	0.11
query13	0.63	0.61	0.60
query14	0.79	0.84	0.84
query15	0.87	0.84	0.86
query16	0.39	0.39	0.39
query17	1.01	1.03	1.04
query18	0.22	0.20	0.19
query19	1.99	1.78	1.81
query20	0.01	0.00	0.01
query21	15.40	0.92	0.57
query22	0.78	1.22	0.90
query23	14.79	1.38	0.62
query24	6.37	1.44	0.58
query25	0.45	0.21	0.09
query26	0.57	0.17	0.13
query27	0.05	0.05	0.05
query28	10.04	0.94	0.42
query29	12.59	3.91	3.25
query30	3.10	3.02	2.99
query31	2.82	0.60	0.39
query32	3.25	0.55	0.47
query33	3.07	3.09	3.14
query34	16.14	5.41	4.86
query35	4.86	4.89	4.94
query36	0.69	0.50	0.49
query37	0.10	0.07	0.07
query38	0.06	0.05	0.04
query39	0.03	0.03	0.02
query40	0.18	0.14	0.13
query41	0.08	0.03	0.02
query42	0.03	0.02	0.02
query43	0.04	0.02	0.03
Total cold run time: 106.53 s
Total hot run time: 32.42 s

@deardeng deardeng force-pushed the fix-rename-db-lock branch 5 times, most recently from 3c5eca4 to 3aba765 Compare August 25, 2025 09:46
@deardeng
Copy link
Contributor Author

run buildall

@deardeng deardeng force-pushed the fix-rename-db-lock branch from 3aba765 to 077c2cc Compare August 25, 2025 10:08
@doris-robot
Copy link

TPC-DS: Total hot run time: 185066 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 077c2cc9ac152a30e30fc7ebe8ea28dc3f53b6f7, data reload: false

query1	999	374	389	374
query2	6525	1749	1770	1749
query3	6750	221	215	215
query4	26686	23494	23739	23494
query5	4848	626	471	471
query6	304	206	214	206
query7	4622	500	285	285
query8	264	219	217	217
query9	8591	2850	2850	2850
query10	477	330	292	292
query11	16086	14978	14893	14893
query12	166	114	113	113
query13	1663	546	416	416
query14	8777	5843	5756	5756
query15	219	182	164	164
query16	7187	659	498	498
query17	1177	742	614	614
query18	1989	411	333	333
query19	192	195	184	184
query20	124	116	116	116
query21	211	121	111	111
query22	4067	4216	4014	4014
query23	33809	32845	32847	32845
query24	8086	2367	2387	2367
query25	531	483	420	420
query26	1231	280	157	157
query27	2740	501	348	348
query28	4346	2241	2202	2202
query29	770	578	457	457
query30	283	225	187	187
query31	899	815	721	721
query32	90	73	76	73
query33	552	380	325	325
query34	794	830	503	503
query35	796	834	798	798
query36	974	1027	911	911
query37	118	104	85	85
query38	4038	4036	4015	4015
query39	1500	1415	1410	1410
query40	220	124	119	119
query41	67	56	53	53
query42	119	111	111	111
query43	490	499	488	488
query44	1329	853	855	853
query45	186	169	168	168
query46	844	1014	639	639
query47	1728	1813	1682	1682
query48	394	429	320	320
query49	737	480	384	384
query50	642	704	397	397
query51	4122	4100	4072	4072
query52	115	115	98	98
query53	237	257	205	205
query54	588	614	513	513
query55	88	88	86	86
query56	318	315	330	315
query57	1210	1188	1127	1127
query58	277	266	277	266
query59	2661	2774	2592	2592
query60	348	332	317	317
query61	129	125	125	125
query62	803	741	668	668
query63	223	201	196	196
query64	4331	1041	694	694
query65	4307	4194	4200	4194
query66	1144	411	323	323
query67	15379	15261	15139	15139
query68	7835	923	571	571
query69	481	323	307	307
query70	1240	1145	1083	1083
query71	415	314	316	314
query72	5602	4798	4877	4798
query73	677	635	354	354
query74	9277	8721	9083	8721
query75	3446	3085	2641	2641
query76	3265	1137	730	730
query77	746	407	318	318
query78	9471	9688	8888	8888
query79	2240	785	622	622
query80	602	534	483	483
query81	476	265	228	228
query82	203	132	106	106
query83	255	250	245	245
query84	240	103	86	86
query85	788	378	333	333
query86	338	299	285	285
query87	4249	4313	4149	4149
query88	3501	2213	2212	2212
query89	388	313	282	282
query90	1994	225	220	220
query91	148	144	110	110
query92	82	69	70	69
query93	1644	985	628	628
query94	676	420	306	306
query95	399	368	313	313
query96	486	570	277	277
query97	2637	2683	2568	2568
query98	239	218	216	216
query99	1351	1427	1270	1270
Total cold run time: 271908 ms
Total hot run time: 185066 ms

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

@hello-stephen
Copy link
Contributor

FE UT Coverage Report

Increment line coverage 41.30% (19/46) 🎉
Increment coverage report
Complete coverage report

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Aug 25, 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.

@doris-robot
Copy link

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

query1	0.05	0.03	0.03
query2	0.09	0.04	0.04
query3	0.25	0.07	0.08
query4	1.60	0.10	0.11
query5	0.44	0.42	0.41
query6	1.18	0.64	0.65
query7	0.04	0.02	0.02
query8	0.04	0.04	0.04
query9	0.61	0.53	0.51
query10	0.58	0.57	0.57
query11	0.17	0.11	0.11
query12	0.15	0.12	0.12
query13	0.64	0.62	0.61
query14	0.79	0.84	0.82
query15	0.89	0.86	0.86
query16	0.39	0.40	0.39
query17	1.05	1.06	1.04
query18	0.22	0.20	0.20
query19	1.97	1.87	1.82
query20	0.01	0.02	0.01
query21	15.37	0.98	0.60
query22	0.76	1.18	0.79
query23	14.78	1.39	0.67
query24	6.83	1.40	0.59
query25	0.46	0.24	0.09
query26	0.53	0.17	0.12
query27	0.05	0.05	0.06
query28	9.59	0.90	0.43
query29	12.60	3.91	3.26
query30	3.06	3.03	2.94
query31	2.83	0.58	0.38
query32	3.24	0.54	0.48
query33	3.04	3.15	3.14
query34	16.17	5.47	4.89
query35	4.99	4.90	4.96
query36	0.70	0.51	0.49
query37	0.10	0.07	0.06
query38	0.05	0.04	0.04
query39	0.03	0.03	0.02
query40	0.17	0.14	0.14
query41	0.08	0.03	0.02
query42	0.04	0.03	0.02
query43	0.04	0.03	0.03
Total cold run time: 106.67 s
Total hot run time: 32.56 s

Copy link
Contributor

@yujun777 yujun777 left a comment

Choose a reason for hiding this comment

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

LGTM

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 45bcb12 into apache:master Aug 26, 2025
29 of 31 checks passed
deardeng added a commit to deardeng/incubator-doris that referenced this pull request Sep 12, 2025
Add db lock to protect rename db editlog, and when writing create table
editlog, check whether the db name has been modified. If the db name has
been modified, the table creation statement will report an error.
deardeng added a commit to deardeng/incubator-doris that referenced this pull request Sep 12, 2025
Add db lock to protect rename db editlog, and when writing create table
editlog, check whether the db name has been modified. If the db name has
been modified, the table creation statement will report an error.
deardeng added a commit to deardeng/incubator-doris that referenced this pull request Sep 12, 2025
Add db lock to protect rename db editlog, and when writing create table
editlog, check whether the db name has been modified. If the db name has
been modified, the table creation statement will report an error.
dataroaring pushed a commit that referenced this pull request Sep 16, 2025
deardeng added a commit to deardeng/incubator-doris that referenced this pull request Sep 18, 2025
Add db lock to protect rename db editlog, and when writing create table
editlog, check whether the db name has been modified. If the db name has
been modified, the table creation statement will report an error.
@morrySnow morrySnow mentioned this pull request Sep 22, 2025
yiguolei pushed a commit to yiguolei/incubator-doris that referenced this pull request Dec 19, 2025
Add db lock to protect rename db editlog, and when writing create table
editlog, check whether the db name has been modified. If the db name has
been modified, the table creation statement will report an error.
yiguolei added a commit to yiguolei/incubator-doris that referenced this pull request Dec 19, 2025
…pache#4981)

pick from apache#55054

Add db lock to protect rename db editlog, and when writing create table
editlog, check whether the db name has been modified. If the db name has
been modified, the table creation statement will report an error.

## Proposed changes

Issue Number: close #xxx

<!--Describe your changes.-->
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.9-merged dev/3.1.1-merged p0_l reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants