Skip to content

[fix](cloud) Prevent old clients from decoding unknown MetaServiceCode as OK - #64148

Merged
gavinchou merged 4 commits into
apache:masterfrom
wyxxxcat:support_new_ms_old_be_rate_limit
Aug 1, 2026
Merged

[fix](cloud) Prevent old clients from decoding unknown MetaServiceCode as OK#64148
gavinchou merged 4 commits into
apache:masterfrom
wyxxxcat:support_new_ms_old_be_rate_limit

Conversation

@wyxxxcat

@wyxxxcat wyxxxcat commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator

Issue Number: close #xxx

Related PR: #xxx

Problem Summary: Older BE versions may treat unknown meta service enum codes as OK under proto2 semantics. Add a request capability marker so MS only returns MS_TOO_BUSY to BE versions that can handle it, and downgrade otherwise.

None

  • Test: No need to test (not requested; compatibility marker and error-code gating only)

  • Behavior changed: Yes (MS_TOO_BUSY is returned only when the BE request declares support; legacy requests receive KV_TXN_CONFLICT instead)

  • Does this need documentation: No

What problem does this PR solve?

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

@hello-stephen

Copy link
Copy Markdown
Contributor

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?

@wyxxxcat
wyxxxcat force-pushed the support_new_ms_old_be_rate_limit branch 3 times, most recently from 7a1de92 to 8a2a4cc Compare June 6, 2026 09:09
@wyxxxcat
wyxxxcat force-pushed the support_new_ms_old_be_rate_limit branch from 8a2a4cc to af9acb3 Compare June 6, 2026 09:17
@wyxxxcat

wyxxxcat commented Jun 6, 2026

Copy link
Copy Markdown
Collaborator Author

run buildall

@hello-stephen

Copy link
Copy Markdown
Contributor

Cloud UT Coverage Report

Increment line coverage 75.44% (43/57) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 78.36% (1908/2435)
Line Coverage 64.81% (34015/52482)
Region Coverage 65.25% (17418/26693)
Branch Coverage 54.10% (9244/17086)

@hello-stephen

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

------ Round 1 ----------------------------------
orders	Doris	NULL	NULL	0	0	0	NULL	0	NULL	NULL	2023-12-26 18:27:23	2023-12-26 18:42:55	NULL	utf-8	NULL	NULL	
============================================
q1	17600	4076	4023	4023
q2	q3	10944	1436	809	809
q4	4752	494	346	346
q5	8724	885	587	587
q6	353	176	137	137
q7	916	831	656	656
q8	10929	1748	1638	1638
q9	7205	4600	4580	4580
q10	6813	1808	1529	1529
q11	442	271	250	250
q12	647	450	292	292
q13	18144	3779	2786	2786
q14	270	257	244	244
q15	q16	819	775	720	720
q17	925	989	981	981
q18	6944	5666	5620	5620
q19	1162	1247	1128	1128
q20	516	423	265	265
q21	5593	2612	2428	2428
q22	443	355	300	300
Total cold run time: 104141 ms
Total hot run time: 29319 ms

----- Round 2, with runtime_filter_mode=off -----
orders	Doris	NULL	NULL	150000000	42	6422171781	NULL	22778155	NULL	NULL	2023-12-26 18:27:23	2023-12-26 18:42:55	NULL	utf-8	NULL	NULL	
============================================
q1	4378	4281	4270	4270
q2	q3	4569	4970	4348	4348
q4	2113	2230	1388	1388
q5	4450	4326	4379	4326
q6	375	218	151	151
q7	2039	1910	1762	1762
q8	2499	2104	2131	2104
q9	8050	8011	7983	7983
q10	4830	4845	4329	4329
q11	575	426	377	377
q12	774	787	537	537
q13	3301	3751	3080	3080
q14	307	306	274	274
q15	q16	713	748	638	638
q17	1367	1344	1324	1324
q18	7897	7357	6752	6752
q19	1129	1101	1099	1099
q20	2234	2246	1970	1970
q21	5296	4598	4514	4514
q22	526	459	415	415
Total cold run time: 57422 ms
Total hot run time: 51641 ms

@hello-stephen

Copy link
Copy Markdown
Contributor
TPC-DS: Total hot run time: 169488 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 af9acb311b12dadb5fd958932bcedcc0d0b93460, data reload: false

query5	4320	631	478	478
query6	478	197	177	177
query7	4806	574	292	292
query8	371	218	202	202
query9	8762	4076	4065	4065
query10	455	310	268	268
query11	5943	2369	2216	2216
query12	156	108	102	102
query13	1305	619	425	425
query14	6508	5411	5061	5061
query14_1	4449	4426	4489	4426
query15	214	201	184	184
query16	1038	470	432	432
query17	1131	726	609	609
query18	2795	510	386	386
query19	212	190	147	147
query20	122	112	116	112
query21	228	139	120	120
query22	13725	13612	13487	13487
query23	17449	16480	16118	16118
query23_1	16311	16373	16437	16373
query24	7639	1806	1312	1312
query24_1	1331	1324	1342	1324
query25	608	483	437	437
query26	1338	317	165	165
query27	2584	526	347	347
query28	4456	2029	2055	2029
query29	1126	651	527	527
query30	314	237	202	202
query31	1126	1083	962	962
query32	111	67	62	62
query33	528	332	279	279
query34	1169	1125	647	647
query35	777	798	690	690
query36	1367	1420	1237	1237
query37	201	99	92	92
query38	3201	3159	3076	3076
query39	926	929	881	881
query39_1	873	901	868	868
query40	220	126	100	100
query41	64	62	61	61
query42	95	91	94	91
query43	316	314	277	277
query44	
query45	198	185	184	184
query46	1092	1189	731	731
query47	2406	2330	2254	2254
query48	379	420	299	299
query49	626	489	359	359
query50	969	350	265	265
query51	4357	4340	4206	4206
query52	90	89	75	75
query53	246	264	199	199
query54	272	218	195	195
query55	80	76	71	71
query56	227	233	226	226
query57	1432	1428	1319	1319
query58	246	220	213	213
query59	1576	1661	1460	1460
query60	287	245	241	241
query61	154	161	161	161
query62	689	648	586	586
query63	233	186	189	186
query64	2553	816	614	614
query65	
query66	1725	465	338	338
query67	29780	29728	29637	29637
query68	
query69	432	311	261	261
query70	975	1005	908	908
query71	297	225	208	208
query72	3030	2655	2466	2466
query73	873	783	444	444
query74	5132	4925	4780	4780
query75	2689	2620	2239	2239
query76	2328	1164	777	777
query77	345	380	290	290
query78	12571	12482	11800	11800
query79	1433	1073	786	786
query80	1297	485	399	399
query81	531	281	242	242
query82	623	154	121	121
query83	309	282	251	251
query84	265	148	110	110
query85	931	520	472	472
query86	438	314	277	277
query87	3495	3328	3190	3190
query88	3671	2742	2750	2742
query89	447	374	325	325
query90	1952	176	190	176
query91	181	162	136	136
query92	59	61	53	53
query93	1567	1555	844	844
query94	718	347	298	298
query95	670	479	343	343
query96	1078	821	348	348
query97	2709	2691	2557	2557
query98	213	218	205	205
query99	1151	1172	1032	1032
Total cold run time: 253621 ms
Total hot run time: 169488 ms

@hello-stephen

Copy link
Copy Markdown
Contributor

BE Regression && UT Coverage Report

Increment line coverage 100.00% (10/10) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 73.89% (28274/38263)
Line Coverage 57.87% (307481/531310)
Region Coverage 54.63% (257269/470952)
Branch Coverage 56.08% (111725/199212)

@hello-stephen

Copy link
Copy Markdown
Contributor

FE Regression Coverage Report

Increment line coverage 0.00% (0/501) 🎉
Increment coverage report
Complete coverage report

@wyxxxcat

wyxxxcat commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator Author

/review

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Summary:
I found one blocking compatibility/backpressure issue. The PR adds the request capability bit and correctly avoids returning the new MS_TOO_BUSY enum to requests that do not advertise support, but the unsupported path currently skips the MS-wide stress rejection entirely instead of downgrading it to a legacy retryable code. That leaves old BEs able to continue full traffic during rolling upgrade exactly when the meta service is trying to shed load.

Critical checkpoints:

  • Goal/test: The goal is to gate MS_TOO_BUSY by BE capability. The capability marking and proto fields are present, and helper tests cover reflection/whitelist behavior, but the legacy unsupported-client behavior is not covered and does not match the intended downgrade behavior.
  • Scope/focus: The actual PR is small and focused on cloud meta-service rate-limit compatibility.
  • Concurrency/lifecycle: No new shared mutable state beyond existing atomics/whitelist lock patterns; no new lifecycle hazard found in the reviewed patch.
  • Configuration: No new config item. Existing rate-limit switches are reused.
  • Compatibility: Blocking issue below: old clients avoid the unknown enum, but they also bypass MS-wide stress rejection instead of receiving a known retryable status.
  • Parallel paths: retry_rpc request types were updated with the capability field; manual get_rowset marks the field too.
  • Tests: Added unit tests do not cover an old request without support_ms_too_busy under stress.
  • Observability/performance/transactions: No additional issue found beyond the backpressure bypass risk.

User focus: No additional user-provided review focus was specified.

Comment thread cloud/src/meta-service/meta_service_helper.h
@wyxxxcat
wyxxxcat force-pushed the support_new_ms_old_be_rate_limit branch from af9acb3 to e9c6a9b Compare July 2, 2026 03:53
@wyxxxcat

wyxxxcat commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator Author

run buildall

@wyxxxcat

wyxxxcat commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator Author

run cloudut

@hello-stephen

Copy link
Copy Markdown
Contributor

FE UT Coverage Report

Increment line coverage `` 🎉
Increment coverage report
Complete coverage report

@hello-stephen

Copy link
Copy Markdown
Contributor

BE Regression && UT Coverage Report

Increment line coverage 100.00% (10/10) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 72.87% (29084/39914)
Line Coverage 56.50% (314309/556313)
Region Coverage 53.08% (262018/493644)
Branch Coverage 54.03% (114891/212635)

@hello-stephen

Copy link
Copy Markdown
Contributor

FE Regression Coverage Report

Increment line coverage 0.00% (0/26) 🎉
Increment coverage report
Complete coverage report

@liaoxin01

Copy link
Copy Markdown
Contributor

/review

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Review summary for e9c6a9b.

I did not submit any new inline comments. The only substantiated issue I found is the legacy-request stress rejection problem already covered by existing inline thread 3379332199 on cloud/src/meta-service/meta_service_helper.h; I treated it as duplicate context rather than posting the same issue again. That thread still appears applicable to the current patch and should be resolved before merge.

Critical checkpoint conclusions:

  • Goal/test: The PR tries to gate MS_TOO_BUSY by request capability. New BE requests sent through retry_rpc and the hand-rolled GetRowset path are marked, but the legacy no-field behavior described in the PR is already called out by the existing thread. No new test was added; the missing old-client/no-field test is part of that existing feedback.
  • Scope: The code change is small and limited to BE cloud request marking, meta-service preprocessing, and proto request fields.
  • Concurrency/lifecycle: No new shared mutable lifecycle or lock ordering issue found.
  • Config/compatibility: No new config was added. This is a rolling-upgrade/proto compatibility change; field numbers were appended, and the remaining compatibility concern is the existing duplicate thread.
  • Parallel paths: The generic retry_rpc path and the special sync_tablet_rowsets_unlocked GetRowset path both set the capability marker. The default MS stress whitelist maps to request types that received the new field.
  • Transaction/persistence/data correctness: No additional transaction, persistence, or visible-version issue found beyond the existing busy-code compatibility concern.
  • Performance/observability: No new blocking performance or observability issue found. The added reflection is outside a proven hot enough path for a separate review comment.
  • Validation: Verified the current PR head and GitHub changed-file list. The exact GitHub patch reverse-applies cleanly with whitespace errors treated as failures. I did not run a build or tests because this runner lacks thirdparty/installed and thirdparty/installed/bin/protoc; the checkout is also shallow/grafted, so GitHub PR metadata was used as authoritative scope.

User focus: no additional user-provided review focus was supplied.

Subagent conclusions: optimizer-rewrite and tests-session-config both returned NO_NEW_VALUABLE_FINDINGS for the final ledger/comment set in convergence round C-001. No subagent candidate became a new inline comment; M-001 was merged as duplicate_of_existing_thread 3379332199.

@hello-stephen

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

------ Round 1 ----------------------------------
============================================
q1	17736	4044	4005	4005
q2	2036	328	206	206
q3	10282	1422	804	804
q4	4685	482	337	337
q5	7520	961	580	580
q6	181	167	136	136
q7	777	856	628	628
q8	9344	1563	1627	1563
q9	5626	4341	4378	4341
q10	6778	1781	1563	1563
q11	516	340	316	316
q12	689	544	428	428
q13	18109	3475	2757	2757
q14	264	256	242	242
q15	q16	796	794	706	706
q17	970	944	983	944
q18	6949	5735	5556	5556
q19	1193	1283	1098	1098
q20	723	672	519	519
q21	5620	2680	2463	2463
q22	445	355	299	299
Total cold run time: 101239 ms
Total hot run time: 29491 ms

----- Round 2, with runtime_filter_mode=off -----
============================================
q1	4335	4261	4252	4252
q2	284	317	208	208
q3	4564	4981	4454	4454
q4	2074	2139	1362	1362
q5	4488	4312	4315	4312
q6	223	173	127	127
q7	1716	1642	1995	1642
q8	2691	2148	2174	2148
q9	8111	8285	7824	7824
q10	4754	4695	4289	4289
q11	577	428	389	389
q12	746	781	583	583
q13	3198	3670	2925	2925
q14	307	317	271	271
q15	q16	706	736	641	641
q17	1344	1302	1341	1302
q18	7980	7511	7328	7328
q19	1150	1090	1048	1048
q20	2231	2219	1930	1930
q21	5250	4538	4369	4369
q22	505	461	402	402
Total cold run time: 57234 ms
Total hot run time: 51806 ms

@hello-stephen

Copy link
Copy Markdown
Contributor
TPC-DS: Total hot run time: 180302 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 e9c6a9ba3b5ee42c6b558857cd10b14dc5caa817, data reload: false

query5	4302	641	499	499
query6	456	233	205	205
query7	4848	579	335	335
query8	332	192	171	171
query9	8777	3968	3999	3968
query10	451	338	297	297
query11	5954	2317	2143	2143
query12	155	102	100	100
query13	1253	573	425	425
query14	6258	5253	4949	4949
query14_1	4291	4268	4296	4268
query15	219	198	184	184
query16	1027	466	429	429
query17	1101	713	567	567
query18	2426	468	331	331
query19	203	179	146	146
query20	115	104	107	104
query21	231	157	135	135
query22	13564	13701	13411	13411
query23	17539	16577	16199	16199
query23_1	16292	16354	16227	16227
query24	7488	1728	1324	1324
query24_1	1331	1295	1274	1274
query25	575	470	399	399
query26	1333	352	221	221
query27	2581	612	389	389
query28	4502	2026	1998	1998
query29	1118	649	504	504
query30	336	263	229	229
query31	1114	1099	988	988
query32	107	64	62	62
query33	523	329	259	259
query34	1146	1138	640	640
query35	764	782	687	687
query36	1392	1379	1181	1181
query37	159	110	99	99
query38	1890	1721	1653	1653
query39	940	927	886	886
query39_1	867	893	908	893
query40	242	164	138	138
query41	70	69	68	68
query42	98	97	94	94
query43	336	322	282	282
query44	1403	777	779	777
query45	202	196	186	186
query46	1084	1195	732	732
query47	2377	2342	2224	2224
query48	402	429	305	305
query49	601	442	324	324
query50	1085	433	344	344
query51	10867	10817	10739	10739
query52	87	90	76	76
query53	276	292	212	212
query54	298	260	234	234
query55	78	72	67	67
query56	306	310	305	305
query57	1437	1415	1324	1324
query58	297	261	282	261
query59	1576	1644	1442	1442
query60	315	283	265	265
query61	183	202	150	150
query62	703	652	577	577
query63	239	202	210	202
query64	2839	1003	829	829
query65	4867	4765	4741	4741
query66	1845	519	392	392
query67	29544	29466	29457	29457
query68	3073	1515	932	932
query69	415	307	281	281
query70	1064	960	964	960
query71	344	306	302	302
query72	3081	2696	2433	2433
query73	799	751	435	435
query74	5096	4934	4777	4777
query75	2599	2593	2235	2235
query76	2317	1184	737	737
query77	348	382	288	288
query78	12260	12365	11790	11790
query79	1383	1174	710	710
query80	1280	516	454	454
query81	540	324	282	282
query82	613	157	119	119
query83	355	309	298	298
query84	278	161	129	129
query85	966	594	509	509
query86	436	291	284	284
query87	1815	1820	1753	1753
query88	3734	2788	2808	2788
query89	456	406	350	350
query90	1945	206	195	195
query91	211	196	160	160
query92	72	61	57	57
query93	1692	1507	955	955
query94	717	344	317	317
query95	778	498	466	466
query96	1090	800	360	360
query97	2677	2659	2572	2572
query98	218	212	199	199
query99	1141	1149	1021	1021
Total cold run time: 265689 ms
Total hot run time: 180302 ms

@hello-stephen

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

query1	0.01	0.01	0.01
query2	0.09	0.05	0.05
query3	0.25	0.14	0.14
query4	1.61	0.14	0.13
query5	0.25	0.22	0.22
query6	1.24	1.12	1.06
query7	0.03	0.01	0.01
query8	0.05	0.03	0.04
query9	0.38	0.31	0.32
query10	0.54	0.56	0.54
query11	0.19	0.15	0.14
query12	0.18	0.14	0.14
query13	0.46	0.47	0.48
query14	1.03	1.02	1.00
query15	0.62	0.58	0.60
query16	0.33	0.34	0.31
query17	1.11	1.06	1.10
query18	0.23	0.21	0.21
query19	2.09	2.03	1.92
query20	0.01	0.01	0.01
query21	15.44	0.21	0.14
query22	4.82	0.05	0.06
query23	16.14	0.32	0.12
query24	2.95	0.42	0.30
query25	0.11	0.05	0.04
query26	0.76	0.21	0.16
query27	0.05	0.04	0.03
query28	3.47	0.91	0.53
query29	12.47	3.99	3.20
query30	0.27	0.16	0.15
query31	2.77	0.59	0.33
query32	3.22	0.60	0.48
query33	3.12	3.27	3.21
query34	15.45	4.25	3.52
query35	3.54	3.51	3.53
query36	0.57	0.44	0.41
query37	0.09	0.06	0.07
query38	0.05	0.04	0.04
query39	0.04	0.03	0.02
query40	0.17	0.16	0.15
query41	0.09	0.03	0.03
query42	0.04	0.03	0.03
query43	0.04	0.04	0.03
Total cold run time: 96.37 s
Total hot run time: 24.88 s

@wyxxxcat
wyxxxcat force-pushed the support_new_ms_old_be_rate_limit branch 2 times, most recently from d328f8d to 08f0603 Compare July 9, 2026 14:37
@wyxxxcat
wyxxxcat force-pushed the support_new_ms_old_be_rate_limit branch 6 times, most recently from 47712fd to 13d30c5 Compare August 1, 2026 06:48
@wyxxxcat
wyxxxcat force-pushed the support_new_ms_old_be_rate_limit branch from 13d30c5 to b8a9fe7 Compare August 1, 2026 07:07
@wyxxxcat

wyxxxcat commented Aug 1, 2026

Copy link
Copy Markdown
Collaborator Author

run buildall

@hello-stephen

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

------ Round 1 ----------------------------------
============================================
q1	17633	4037	3927	3927
q2	2020	341	202	202
q3	10831	1384	790	790
q4	4721	468	338	338
q5	8139	841	563	563
q6	303	173	141	141
q7	817	803	592	592
q8	10636	1601	1635	1601
q9	5558	4115	4108	4108
q10	6801	1644	1353	1353
q11	503	348	317	317
q12	750	563	462	462
q13	18116	3315	2799	2799
q14	270	259	245	245
q15	q16	739	723	661	661
q17	1169	1024	914	914
q18	6693	5659	5474	5474
q19	1612	1301	1138	1138
q20	770	673	621	621
q21	5730	2583	2535	2535
q22	445	350	301	301
Total cold run time: 104256 ms
Total hot run time: 29082 ms

----- Round 2, with runtime_filter_mode=off -----
============================================
q1	4551	4340	4316	4316
q2	289	303	201	201
q3	4541	4953	4333	4333
q4	2151	2270	1392	1392
q5	4242	4083	4134	4083
q6	224	175	131	131
q7	1694	1951	1594	1594
q8	2439	2169	2073	2073
q9	7305	7293	7300	7293
q10	4317	4272	3903	3903
q11	544	403	372	372
q12	731	764	508	508
q13	3320	3551	2973	2973
q14	301	313	278	278
q15	q16	723	734	619	619
q17	1316	1333	1329	1329
q18	8029	7206	6981	6981
q19	1127	1095	1056	1056
q20	2214	2196	1926	1926
q21	5234	4611	4399	4399
q22	521	460	405	405
Total cold run time: 55813 ms
Total hot run time: 50165 ms

@hello-stephen

Copy link
Copy Markdown
Contributor
TPC-DS: Total hot run time: 168812 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 b8a9fe77c8c6a40a37007ed24884afd16008e19e, data reload: false

query5	4319	614	480	480
query6	471	217	200	200
query7	4850	601	351	351
query8	331	209	172	172
query9	8763	3986	3929	3929
query10	482	359	310	310
query11	5888	2217	2035	2035
query12	157	96	96	96
query13	1244	574	420	420
query14	6137	4682	4327	4327
query14_1	3791	3778	3794	3778
query15	214	201	173	173
query16	1000	440	392	392
query17	1013	680	546	546
query18	2411	475	349	349
query19	203	183	146	146
query20	107	104	100	100
query21	235	160	130	130
query22	12958	13001	12728	12728
query23	17212	16342	16028	16028
query23_1	16127	16097	16126	16097
query24	7412	1685	1233	1233
query24_1	1264	1237	1219	1219
query25	546	455	385	385
query26	1334	359	217	217
query27	2605	624	386	386
query28	4493	2044	2054	2044
query29	1072	630	512	512
query30	341	266	224	224
query31	1111	1054	938	938
query32	100	62	58	58
query33	492	309	237	237
query34	1171	1205	649	649
query35	732	744	619	619
query36	782	767	701	701
query37	143	106	90	90
query38	1825	1658	1581	1581
query39	873	808	795	795
query39_1	804	795	769	769
query40	259	156	143	143
query41	64	65	63	63
query42	90	91	89	89
query43	311	317	270	270
query44	1415	775	770	770
query45	191	185	165	165
query46	1013	1206	742	742
query47	1514	1509	1451	1451
query48	405	402	289	289
query49	582	407	288	288
query50	1050	443	329	329
query51	10526	10284	10254	10254
query52	88	93	72	72
query53	260	261	203	203
query54	269	232	211	211
query55	76	71	64	64
query56	277	309	298	298
query57	1007	993	942	942
query58	283	251	250	250
query59	1484	1556	1382	1382
query60	293	249	254	249
query61	143	145	148	145
query62	390	313	262	262
query63	238	193	191	191
query64	2832	1017	847	847
query65	3870	3818	3812	3812
query66	1817	455	353	353
query67	28156	28067	28078	28067
query68	3188	1565	982	982
query69	396	306	257	257
query70	861	794	774	774
query71	363	342	312	312
query72	2935	2635	2088	2088
query73	889	771	446	446
query74	4617	4501	4281	4281
query75	2375	2381	2018	2018
query76	2314	1138	759	759
query77	343	404	283	283
query78	11122	11266	10748	10748
query79	1389	1184	764	764
query80	686	594	510	510
query81	473	341	286	286
query82	566	150	115	115
query83	393	330	299	299
query84	305	166	134	134
query85	997	698	570	570
query86	321	231	225	225
query87	1789	1795	1710	1710
query88	3783	2800	2796	2796
query89	385	323	284	284
query90	1856	198	188	188
query91	195	186	164	164
query92	62	65	53	53
query93	1646	1515	905	905
query94	519	363	315	315
query95	787	486	472	472
query96	1021	800	374	374
query97	2450	2438	2334	2334
query98	202	197	191	191
query99	717	725	606	606
Total cold run time: 254133 ms
Total hot run time: 168812 ms

@hello-stephen

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

query1	0.00	0.00	0.00
query2	0.15	0.09	0.09
query3	0.37	0.25	0.25
query4	1.60	0.24	0.24
query5	0.33	0.32	0.32
query6	1.15	0.67	0.66
query7	0.04	0.01	0.01
query8	0.09	0.07	0.08
query9	0.49	0.39	0.38
query10	0.58	0.59	0.61
query11	0.31	0.18	0.18
query12	0.31	0.18	0.19
query13	0.51	0.54	0.53
query14	0.92	0.92	0.92
query15	0.69	0.60	0.60
query16	0.39	0.40	0.39
query17	1.02	1.04	1.00
query18	0.30	0.29	0.28
query19	1.96	1.83	1.81
query20	0.02	0.02	0.01
query21	15.39	0.37	0.32
query22	4.89	0.14	0.13
query23	15.84	0.50	0.30
query24	2.39	0.60	0.43
query25	0.15	0.11	0.10
query26	0.75	0.29	0.21
query27	0.10	0.11	0.10
query28	3.34	0.89	0.44
query29	12.48	4.20	3.22
query30	0.36	0.27	0.26
query31	2.78	0.60	0.35
query32	3.23	0.61	0.48
query33	3.00	2.97	2.99
query34	15.64	4.04	3.30
query35	3.23	3.20	3.18
query36	0.65	0.54	0.52
query37	0.12	0.09	0.09
query38	0.08	0.07	0.07
query39	0.08	0.06	0.06
query40	0.21	0.17	0.17
query41	0.12	0.08	0.08
query42	0.08	0.06	0.06
query43	0.07	0.07	0.06
Total cold run time: 96.21 s
Total hot run time: 25.41 s

@hello-stephen

Copy link
Copy Markdown
Contributor

FE UT Coverage Report

Increment line coverage 40.00% (12/30) 🎉
Increment coverage report
Complete coverage report

@hello-stephen

Copy link
Copy Markdown
Contributor

BE Regression && UT Coverage Report

Increment line coverage 100.00% (17/17) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 75.69% (31984/42254)
Line Coverage 60.32% (356380/590813)
Region Coverage 56.90% (299016/525505)
Branch Coverage 58.34% (134793/231048)

@hello-stephen

Copy link
Copy Markdown
Contributor

FE Regression Coverage Report

Increment line coverage 56.67% (17/30) 🎉
Increment coverage report
Complete coverage report

@liaoxin01 liaoxin01 changed the title [fix](cloud) Gate MS too busy errors by BE capability [fix](cloud) Prevent old clients from decoding unknown MetaServiceCode as OK Aug 1, 2026

@liaoxin01 liaoxin01 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@github-actions github-actions Bot added the approved Indicates a PR has been approved by one committer. label Aug 1, 2026
@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

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

@gavinchou
gavinchou merged commit fe5394a into apache:master Aug 1, 2026
32 of 33 checks passed
wyxxxcat added a commit to wyxxxcat/doris that referenced this pull request Aug 1, 2026
…e as OK (apache#64148)

Problem Summary: Older BE versions may treat unknown meta service enum
codes as OK under proto2 semantics. Add a request capability marker so
MS only returns MS_TOO_BUSY to BE versions that can handle it, and
downgrade otherwise.

- Behavior changed: Yes (MS_TOO_BUSY is returned only when the BE
request declares support; legacy requests receive KV_TXN_CONFLICT
instead)
wyxxxcat added a commit to wyxxxcat/doris that referenced this pull request Aug 1, 2026
…e as OK (apache#64148)

Problem Summary: Older BE versions may treat unknown meta service enum
codes as OK under proto2 semantics. Add a request capability marker so
MS only returns MS_TOO_BUSY to BE versions that can handle it, and
downgrade otherwise.

- Behavior changed: Yes (MS_TOO_BUSY is returned only when the BE
request declares support; legacy requests receive KV_TXN_CONFLICT
instead)
yiguolei pushed a commit that referenced this pull request Aug 3, 2026
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/4.1.4-merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants