Skip to content

[feat](logs): add FE/BE diagnostics log query api#61493

Open
Baymine wants to merge 2 commits intoapache:masterfrom
Baymine:feat_log_api
Open

[feat](logs): add FE/BE diagnostics log query api#61493
Baymine wants to merge 2 commits intoapache:masterfrom
Baymine:feat_log_api

Conversation

@Baymine
Copy link
Contributor

@Baymine Baymine commented Mar 18, 2026

What problem does this PR solve?

WIP: description will be added laterly

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
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?

@Baymine
Copy link
Contributor Author

Baymine commented Mar 18, 2026

run buildall

@doris-robot
Copy link

TPC-H: Total hot run time: 26926 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 7a644adfd1c28605eda0b39fd8090238de52fedd, 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	17619	4465	4311	4311
q2	q3	10641	791	521	521
q4	4682	357	254	254
q5	7555	1208	1030	1030
q6	178	174	149	149
q7	777	864	681	681
q8	9342	1520	1369	1369
q9	4860	4712	4710	4710
q10	6239	1923	1643	1643
q11	489	266	247	247
q12	689	585	466	466
q13	18046	2998	2184	2184
q14	229	234	225	225
q15	q16	730	761	661	661
q17	732	869	472	472
q18	6377	5426	5196	5196
q19	1117	983	611	611
q20	563	496	373	373
q21	4362	1853	1513	1513
q22	501	385	310	310
Total cold run time: 95728 ms
Total hot run time: 26926 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	4769	4646	4520	4520
q2	q3	3915	4337	3817	3817
q4	885	1258	787	787
q5	4107	4412	4401	4401
q6	185	175	144	144
q7	1825	1655	1557	1557
q8	2522	2748	2567	2567
q9	7797	7524	7349	7349
q10	3807	4117	3692	3692
q11	504	434	432	432
q12	523	611	468	468
q13	2744	3148	2315	2315
q14	277	321	301	301
q15	q16	768	812	715	715
q17	1139	1385	1357	1357
q18	7093	6862	6669	6669
q19	969	1002	988	988
q20	2134	2172	2021	2021
q21	4204	3432	3410	3410
q22	431	455	377	377
Total cold run time: 50598 ms
Total hot run time: 47887 ms

@doris-robot
Copy link

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

query5	4337	649	506	506
query6	342	233	237	233
query7	4228	460	277	277
query8	342	245	223	223
query9	8665	2737	2738	2737
query10	504	371	316	316
query11	7042	5105	4902	4902
query12	190	133	129	129
query13	1269	463	353	353
query14	5740	3692	3527	3527
query14_1	2919	2855	2885	2855
query15	208	200	175	175
query16	992	484	473	473
query17	909	725	651	651
query18	2450	462	367	367
query19	228	216	191	191
query20	140	128	130	128
query21	226	138	113	113
query22	13256	14253	14709	14253
query23	16294	15673	15584	15584
query23_1	15726	15344	15347	15344
query24	7132	1600	1246	1246
query24_1	1237	1219	1248	1219
query25	555	477	428	428
query26	1227	266	148	148
query27	2788	530	292	292
query28	4462	1835	1821	1821
query29	825	573	483	483
query30	305	231	188	188
query31	994	935	880	880
query32	87	73	70	70
query33	514	340	295	295
query34	898	866	519	519
query35	648	679	623	623
query36	1095	1151	911	911
query37	135	99	87	87
query38	2939	2917	2884	2884
query39	853	858	801	801
query39_1	803	807	790	790
query40	231	160	137	137
query41	63	59	57	57
query42	269	258	263	258
query43	246	249	220	220
query44	
query45	199	197	183	183
query46	878	1041	602	602
query47	2089	2859	2031	2031
query48	322	316	229	229
query49	632	477	396	396
query50	694	284	212	212
query51	4101	4061	4013	4013
query52	270	269	266	266
query53	289	336	285	285
query54	308	273	275	273
query55	96	93	85	85
query56	338	333	355	333
query57	1956	1657	1748	1657
query58	294	284	284	284
query59	2789	2965	2781	2781
query60	356	360	338	338
query61	158	168	164	164
query62	645	598	527	527
query63	320	288	283	283
query64	5035	1294	1013	1013
query65	
query66	1455	465	359	359
query67	24253	24353	24259	24259
query68	
query69	413	322	308	308
query70	991	947	941	941
query71	358	313	307	307
query72	2973	2921	2540	2540
query73	554	552	332	332
query74	9656	9555	9424	9424
query75	2904	2804	2507	2507
query76	2302	1056	708	708
query77	407	401	317	317
query78	11006	11190	10486	10486
query79	1110	759	581	581
query80	1204	635	575	575
query81	542	262	231	231
query82	1344	161	124	124
query83	352	274	250	250
query84	298	120	103	103
query85	917	506	461	461
query86	405	306	293	293
query87	3156	3111	3052	3052
query88	3590	2679	2688	2679
query89	442	380	345	345
query90	1895	189	188	188
query91	173	164	143	143
query92	82	75	71	71
query93	908	861	502	502
query94	524	340	298	298
query95	592	432	324	324
query96	654	527	230	230
query97	2447	2497	2416	2416
query98	242	224	219	219
query99	1009	992	895	895
Total cold run time: 249616 ms
Total hot run time: 169028 ms

@doris-robot
Copy link

BE UT Coverage Report

Increment line coverage 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 52.66% (19780/37561)
Line Coverage 36.20% (184735/510382)
Region Coverage 32.43% (142832/440491)
Branch Coverage 33.60% (62502/186019)

@hello-stephen
Copy link
Contributor

FE UT Coverage Report

Increment line coverage 57.73% (265/459) 🎉
Increment coverage report
Complete coverage report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants