Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix](segment iterator) fix shrink non-char column coredump #36275

Merged
merged 4 commits into from
Jun 18, 2024

Conversation

airborne12
Copy link
Member

@airborne12 airborne12 commented Jun 13, 2024

Proposed changes

Issue Number: close #xxx

If we execute a delete predicate in an inverted index table and then query something from it, it will cause a core dump in shrink_char_type_column_suffix_zero. This occurs because the delete predicate column ID in _char_type_idx is incorrectly shifted to the result column inserted by the inverted index result.

coredump stack like:

COULD NOT CREATE A LOGGINGFILE 20240604-145331!F20240604 14:53:31.991016 24178 column.h:134] Cannot get_shrinked_column() column Const(UInt8)
*** Check failure stack trace: ***
F20240604 14:53:31.991436 24158 column.h:134] Cannot get_shrinked_column() column Const(UInt8)
*** Check failure stack trace: ***
F20240604 14:53:31.991436 24158 column.h:134] Cannot get_shrinked_column() column Const(UInt8)F20240604 14:53:31.991645 24160 column.h:134] Cannot get_shrinked_column() column Const(UInt8)

#0  0x00007fa0bf784387 in ?? () from /mnt/disk2/tengjianping/local/ldb_toolchain/lib/libc.so.6
#1  0x0000557dc8e617a0 in google::LogMessage::Flush() ()
#2  0x0000557dc8e65599 in google::LogMessageFatal::~LogMessageFatal() ()
#3  0x0000557dbe4ec939 in doris::vectorized::IColumn::get_shrinked_column (this=0x7fa094ac16a0) at /home/zcp/repo_center/doris_release/doris/be/src/vec/columns/column.h:134
#4  0x0000557dc236d8a2 in doris::vectorized::Block::shrink_char_type_column_suffix_zero (this=0x7f9a372a4b70, char_type_idx=...)
    at /home/zcp/repo_center/doris_release/doris/be/src/vec/core/block.cpp:1126
#5  0x0000557dbee9ea95 in doris::segment_v2::SegmentIterator::_next_batch_internal (this=<optimized out>, block=0x7f9a372a4b70)
    at /home/zcp/repo_center/doris_release/doris/be/src/olap/rowset/segment_v2/segment_iterator.cpp:2408
#6  0x0000557dbee9cc5a in doris::segment_v2::SegmentIterator::next_batch(doris::vectorized::Block*)::$_0::operator()() const (this=<optimized out>)
    at /home/zcp/repo_center/doris_release/doris/be/src/olap/rowset/segment_v2/segment_iterator.cpp:2090
#7  doris::segment_v2::SegmentIterator::next_batch (this=0x1c5d, block=0x6) at /home/zcp/repo_center/doris_release/doris/be/src/olap/rowset/segment_v2/segment_iterator.cpp:2089
#8  0x0000557dbeebbb44 in doris::BetaRowsetReader::next_block (this=0x7f9a3a041600, block=0x7f9a372a4b70)
    at /home/zcp/repo_center/doris_release/doris/be/src/olap/rowset/beta_rowset_reader.cpp:342
#9  0x0000557dc8590ddd in doris::vectorized::VCollectIterator::Level0Iterator::_refresh (this=0x7f9a372a1be0)
    at /home/zcp/repo_center/doris_release/doris/be/src/vec/olap/vcollect_iterator.h:256
#10 doris::vectorized::VCollectIterator::Level0Iterator::refresh_current_row (this=0x7f9a372a1be0)
    at /home/zcp/repo_center/doris_release/doris/be/src/vec/olap/vcollect_iterator.cpp:514
#11 0x0000557dc8591055 in doris::vectorized::VCollectIterator::Level0Iterator::ensure_first_row_ref (this=0x1c5d)
    at /home/zcp/repo_center/doris_release/doris/be/src/vec/olap/vcollect_iterator.cpp:493
#12 0x0000557dc85934f2 in doris::vectorized::VCollectIterator::Level1Iterator::ensure_first_row_ref (this=0x7fa090e36c00)
    at /home/zcp/repo_center/doris_release/doris/be/src/vec/olap/vcollect_iterator.cpp:692
#13 0x0000557dc858ddc9 in doris::vectorized::VCollectIterator::build_heap (this=0x7f9d80976dc0, rs_readers=...)
    at /home/zcp/repo_center/doris_release/doris/be/src/vec/olap/vcollect_iterator.cpp:186
#14 0x0000557dc857e808 in doris::vectorized::BlockReader::_init_collect_iter (this=this@entry=0x7f9d80976800, read_params=...)
    at /home/zcp/repo_center/doris_release/doris/be/src/vec/olap/block_reader.cpp:156
#15 0x0000557dc857f64d in doris::vectorized::BlockReader::init (this=<optimized out>, read_params=...)
    at /home/zcp/repo_center/doris_release/doris/be/src/vec/olap/block_reader.cpp:228
#16 0x0000557dc370dc2c in doris::vectorized::NewOlapScanner::open (this=0x7f9a2aa68210, state=<optimized out>)
--Type <RET> for more, q to quit, c to continue without paging--c
    at /home/zcp/repo_center/doris_release/doris/be/src/vec/exec/scan/new_olap_scanner.cpp:227
#17 0x0000557dc3718d89 in doris::vectorized::ScannerScheduler::_scanner_scan (ctx=std::shared_ptr<doris::vectorized::ScannerContext> (use count 4, weak count 1) = {...}, scan_task=std::shared_ptr<doris::vectorized::ScanTask> (use count 2, weak count 0) = {...}) at /home/zcp/repo_center/doris_release/doris/be/src/vec/exec/scan/scanner_scheduler.cpp:242
#18 0x0000557dc3719b77 in doris::vectorized::ScannerScheduler::submit(std::shared_ptr<doris::vectorized::ScannerContext>, std::shared_ptr<doris::vectorized::ScanTask>)::$_1::operator()() const (this=0x0) at /home/zcp/repo_center/doris_release/doris/be/src/vec/exec/scan/scanner_scheduler.cpp:158
#19 std::__invoke_impl<void, doris::vectorized::ScannerScheduler::submit(std::shared_ptr<doris::vectorized::ScannerContext>, std::shared_ptr<doris::vectorized::ScanTask>)::$_1&>(std::__invoke_other, doris::vectorized::ScannerScheduler::submit(std::shared_ptr<doris::vectorized::ScannerContext>, std::shared_ptr<doris::vectorized::ScanTask>)::$_1&) (__f=...) at /var/local/ldb_toolchain/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/invoke.h:61
#20 std::__invoke_r<void, doris::vectorized::ScannerScheduler::submit(std::shared_ptr<doris::vectorized::ScannerContext>, std::shared_ptr<doris::vectorized::ScanTask>)::$_1&>(doris::vectorized::ScannerScheduler::submit(std::shared_ptr<doris::vectorized::ScannerContext>, std::shared_ptr<doris::vectorized::ScanTask>)::$_1&) (__fn=...) at /var/local/ldb_toolchain/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/invoke.h:111
#21 std::_Function_handler<void (), doris::vectorized::ScannerScheduler::submit(std::shared_ptr<doris::vectorized::ScannerContext>, std::shared_ptr<doris::vectorized::ScanTask>)::$_1>::_M_invoke(std::_Any_data const&) (__functor=...) at /var/local/ldb_toolchain/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/std_function.h:291
#22 0x0000557dbf3c7788 in doris::ThreadPool::dispatch_thread (this=0x7f9d0bbdc400) at /home/zcp/repo_center/doris_release/doris/be/src/util/threadpool.cpp:543
#23 0x0000557dbf3bcb41 in std::function<void ()>::operator()() const (this=0x1471) at /var/local/ldb_toolchain/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/std_function.h:560
#24 doris::Thread::supervise_thread (arg=0x7f9d0bbdf4c0) at /home/zcp/repo_center/doris_release/doris/be/src/util/thread.cpp:498
#25 0x00007fa0bee1dea5 in sem_open () from /mnt/disk2/tengjianping/local/ldb_toolchain/lib/libpthread.so.0

@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.

@airborne12
Copy link
Member Author

run buildall

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	18029	4509	4429	4429
q2	2247	196	194	194
q3	10468	1094	1100	1094
q4	10192	794	900	794
q5	7494	2680	2616	2616
q6	220	137	136	136
q7	963	611	586	586
q8	9222	2062	2048	2048
q9	9004	6903	6485	6485
q10	8798	3726	3716	3716
q11	446	241	241	241
q12	408	235	231	231
q13	17761	3000	2948	2948
q14	276	221	226	221
q15	512	492	486	486
q16	542	371	368	368
q17	977	660	677	660
q18	7949	7547	7454	7454
q19	6453	1506	1502	1502
q20	647	322	321	321
q21	4954	3136	3838	3136
q22	398	340	342	340
Total cold run time: 117960 ms
Total hot run time: 40006 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4383	4219	4267	4219
q2	374	276	264	264
q3	2968	2717	2730	2717
q4	1874	1536	1626	1536
q5	5243	5255	5241	5241
q6	213	127	135	127
q7	2085	1752	1767	1752
q8	3176	3332	3290	3290
q9	8326	8332	8351	8332
q10	3837	3671	3643	3643
q11	601	486	518	486
q12	771	614	613	613
q13	16461	3012	3007	3007
q14	290	266	260	260
q15	527	484	470	470
q16	477	417	418	417
q17	1770	1480	1470	1470
q18	7502	7479	7234	7234
q19	1824	1576	1568	1568
q20	1991	1772	1763	1763
q21	4739	4669	4720	4669
q22	597	545	548	545
Total cold run time: 70029 ms
Total hot run time: 53623 ms

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 36.44% (8986/24660)
Line Coverage: 28.01% (73646/262891)
Region Coverage: 27.49% (38258/139162)
Branch Coverage: 24.19% (19501/80616)
Coverage Report: http://coverage.selectdb-in.cc/coverage/fd35133c38cddf5c3cc96b15f6143a8430cadb58_fd35133c38cddf5c3cc96b15f6143a8430cadb58/report/index.html

@doris-robot
Copy link

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

query1	938	386	370	370
query2	6460	2387	2198	2198
query3	6646	205	206	205
query4	19191	17363	17237	17237
query5	4141	490	457	457
query6	117	90	104	90
query7	4588	313	298	298
query8	328	291	291	291
query9	8622	2440	2427	2427
query10	608	297	300	297
query11	10443	10111	10049	10049
query12	139	86	86	86
query13	1652	362	363	362
query14	9313	6107	7615	6107
query15	235	198	188	188
query16	7837	267	262	262
query17	1916	577	565	565
query18	1965	271	271	271
query19	192	157	162	157
query20	91	82	83	82
query21	214	128	127	127
query22	4310	4030	4026	4026
query23	33693	33155	33089	33089
query24	11983	2862	2891	2862
query25	679	353	360	353
query26	1790	157	157	157
query27	3089	312	314	312
query28	7405	2058	2025	2025
query29	1086	617	603	603
query30	280	150	160	150
query31	959	736	746	736
query32	85	56	61	56
query33	784	326	282	282
query34	924	490	476	476
query35	735	606	617	606
query36	1082	976	916	916
query37	180	70	70	70
query38	2903	2749	2730	2730
query39	870	773	799	773
query40	280	126	125	125
query41	54	52	50	50
query42	118	94	98	94
query43	590	532	529	529
query44	1216	712	719	712
query45	196	167	170	167
query46	1085	726	687	687
query47	1869	1791	1783	1783
query48	362	294	292	292
query49	1171	413	408	408
query50	758	387	388	387
query51	6884	6672	6617	6617
query52	108	89	95	89
query53	353	285	291	285
query54	1166	447	490	447
query55	75	78	74	74
query56	294	260	261	260
query57	1154	1074	1024	1024
query58	250	244	241	241
query59	3352	3192	3021	3021
query60	301	272	273	272
query61	98	98	90	90
query62	637	435	443	435
query63	324	290	288	288
query64	9838	2257	1727	1727
query65	3226	3114	3098	3098
query66	1372	334	338	334
query67	15362	14980	15177	14980
query68	4572	529	537	529
query69	438	305	319	305
query70	1128	1103	1149	1103
query71	392	277	324	277
query72	7071	5452	5519	5452
query73	746	320	320	320
query74	5924	5587	5455	5455
query75	3417	2644	2673	2644
query76	2305	856	906	856
query77	419	283	296	283
query78	10158	9804	9629	9629
query79	2788	501	500	500
query80	1166	460	454	454
query81	561	223	220	220
query82	754	105	103	103
query83	239	169	170	169
query84	242	87	89	87
query85	1646	271	277	271
query86	519	329	324	324
query87	3270	3072	3068	3068
query88	4204	2421	2420	2420
query89	496	412	416	412
query90	1737	194	191	191
query91	133	98	102	98
query92	70	50	48	48
query93	1749	509	497	497
query94	1221	184	186	184
query95	414	309	317	309
query96	595	271	270	270
query97	3208	3010	3063	3010
query98	223	191	198	191
query99	1219	841	832	832
Total cold run time: 273990 ms
Total hot run time: 171375 ms

@doris-robot
Copy link

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

query1	0.04	0.03	0.03
query2	0.08	0.04	0.04
query3	0.22	0.04	0.05
query4	1.68	0.06	0.08
query5	0.52	0.49	0.52
query6	1.12	0.73	0.74
query7	0.03	0.01	0.01
query8	0.06	0.04	0.04
query9	0.55	0.49	0.50
query10	0.54	0.55	0.53
query11	0.15	0.11	0.10
query12	0.14	0.13	0.12
query13	0.58	0.59	0.60
query14	0.76	0.77	0.77
query15	0.83	0.81	0.80
query16	0.36	0.37	0.37
query17	1.02	0.95	1.00
query18	0.22	0.25	0.24
query19	1.83	1.71	1.72
query20	0.01	0.00	0.01
query21	15.43	0.65	0.65
query22	4.19	8.35	1.35
query23	18.25	1.37	1.23
query24	2.07	0.21	0.22
query25	0.16	0.09	0.09
query26	0.27	0.18	0.18
query27	0.09	0.08	0.07
query28	13.31	1.02	1.00
query29	12.56	3.25	3.23
query30	0.26	0.07	0.06
query31	2.86	0.39	0.38
query32	3.29	0.47	0.47
query33	2.94	2.87	2.92
query34	17.26	4.49	4.43
query35	4.54	4.47	4.46
query36	0.65	0.47	0.47
query37	0.18	0.16	0.16
query38	0.16	0.14	0.15
query39	0.04	0.04	0.03
query40	0.17	0.14	0.13
query41	0.09	0.05	0.05
query42	0.05	0.05	0.05
query43	0.05	0.04	0.05
Total cold run time: 109.61 s
Total hot run time: 29.86 s

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@airborne12
Copy link
Member Author

run buildall

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 36.45% (8989/24664)
Line Coverage: 28.02% (73695/263019)
Region Coverage: 27.49% (38275/139242)
Branch Coverage: 24.19% (19518/80676)
Coverage Report: http://coverage.selectdb-in.cc/coverage/ee61214d4a88760bb10070ead9779b5acb743544_ee61214d4a88760bb10070ead9779b5acb743544/report/index.html

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17613	4321	4209	4209
q2	2035	192	195	192
q3	10475	1096	1130	1096
q4	10203	894	751	751
q5	7484	2628	2628	2628
q6	217	134	134	134
q7	941	595	594	594
q8	9220	2021	2054	2021
q9	8848	6474	6462	6462
q10	8994	3692	3701	3692
q11	440	239	244	239
q12	429	231	228	228
q13	18891	2980	3005	2980
q14	265	211	226	211
q15	518	485	488	485
q16	518	376	382	376
q17	946	627	709	627
q18	7962	7490	7364	7364
q19	2649	1453	1420	1420
q20	647	301	328	301
q21	4812	3264	3952	3264
q22	401	353	355	353
Total cold run time: 114508 ms
Total hot run time: 39627 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4480	4359	4275	4275
q2	375	264	280	264
q3	3027	2708	2998	2708
q4	1963	1711	1675	1675
q5	5576	5521	5521	5521
q6	228	130	139	130
q7	2144	1820	1852	1820
q8	3268	3445	3365	3365
q9	8732	8669	8871	8669
q10	4041	3891	3694	3694
q11	587	512	511	511
q12	796	617	638	617
q13	15812	3200	3174	3174
q14	305	276	285	276
q15	513	505	483	483
q16	490	427	430	427
q17	1806	1551	1494	1494
q18	8076	8068	7842	7842
q19	2613	1480	1603	1480
q20	2166	1863	1839	1839
q21	5091	4965	4723	4723
q22	595	557	568	557
Total cold run time: 72684 ms
Total hot run time: 55544 ms

@doris-robot
Copy link

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

query1	922	375	383	375
query2	6457	2493	2409	2409
query3	6634	211	205	205
query4	20447	17281	17288	17281
query5	3590	467	474	467
query6	240	161	173	161
query7	4581	298	300	298
query8	320	301	285	285
query9	8452	2432	2382	2382
query10	575	310	290	290
query11	10641	10082	10016	10016
query12	115	81	90	81
query13	1634	352	361	352
query14	9459	8067	8026	8026
query15	245	195	194	194
query16	7975	267	264	264
query17	1900	566	520	520
query18	2068	272	270	270
query19	198	152	150	150
query20	91	85	82	82
query21	212	143	134	134
query22	4282	3957	3963	3957
query23	33745	33554	33830	33554
query24	10833	2967	2898	2898
query25	579	392	363	363
query26	706	161	168	161
query27	2258	319	324	319
query28	6026	2140	2119	2119
query29	899	629	630	629
query30	231	159	160	159
query31	990	771	764	764
query32	94	54	54	54
query33	783	292	285	285
query34	1070	487	491	487
query35	775	632	658	632
query36	1116	990	992	990
query37	151	76	75	75
query38	2946	2827	2878	2827
query39	898	838	866	838
query40	218	130	131	130
query41	62	55	58	55
query42	114	111	106	106
query43	597	556	565	556
query44	1179	732	733	732
query45	192	170	172	170
query46	1067	766	711	711
query47	1850	1758	1747	1747
query48	365	304	296	296
query49	821	404	403	403
query50	769	385	382	382
query51	6852	6688	6736	6688
query52	103	94	92	92
query53	373	291	290	290
query54	894	442	450	442
query55	74	75	74	74
query56	273	259	257	257
query57	1095	1036	1070	1036
query58	248	239	247	239
query59	3365	3409	3133	3133
query60	284	263	288	263
query61	91	90	119	90
query62	602	442	458	442
query63	324	304	297	297
query64	8490	2244	1719	1719
query65	3195	3112	3109	3109
query66	719	330	321	321
query67	15365	14871	14819	14819
query68	4527	531	517	517
query69	658	458	371	371
query70	1098	1101	1177	1101
query71	436	271	267	267
query72	7349	5497	5810	5497
query73	746	328	328	328
query74	5864	5533	5493	5493
query75	3614	2659	2666	2659
query76	3234	917	968	917
query77	645	310	316	310
query78	10466	9860	9718	9718
query79	2286	513	522	513
query80	919	468	457	457
query81	595	224	225	224
query82	774	102	102	102
query83	263	168	164	164
query84	245	86	81	81
query85	1484	284	270	270
query86	471	286	336	286
query87	3274	3120	3123	3120
query88	4094	2354	2344	2344
query89	498	394	395	394
query90	1748	189	188	188
query91	130	105	103	103
query92	61	48	53	48
query93	2200	498	500	498
query94	1052	194	194	194
query95	458	320	313	313
query96	604	266	270	266
query97	3236	3038	3073	3038
query98	220	204	193	193
query99	1170	817	829	817
Total cold run time: 269138 ms
Total hot run time: 174743 ms

@doris-robot
Copy link

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

query1	0.04	0.04	0.03
query2	0.08	0.04	0.03
query3	0.23	0.05	0.05
query4	1.68	0.10	0.11
query5	0.50	0.51	0.50
query6	1.12	0.72	0.73
query7	0.02	0.01	0.01
query8	0.05	0.04	0.04
query9	0.54	0.49	0.49
query10	0.55	0.56	0.54
query11	0.15	0.12	0.12
query12	0.15	0.12	0.13
query13	0.59	0.57	0.60
query14	0.76	0.77	0.79
query15	0.82	0.80	0.82
query16	0.37	0.37	0.35
query17	1.00	1.04	1.02
query18	0.22	0.25	0.25
query19	1.79	1.74	1.85
query20	0.01	0.00	0.01
query21	15.43	0.68	0.65
query22	3.84	7.33	2.13
query23	18.24	1.35	1.20
query24	2.13	0.23	0.21
query25	0.16	0.09	0.09
query26	0.25	0.17	0.18
query27	0.08	0.08	0.08
query28	13.28	1.01	0.98
query29	12.57	3.27	3.28
query30	0.26	0.06	0.06
query31	2.85	0.40	0.38
query32	3.28	0.47	0.46
query33	2.90	2.93	2.91
query34	17.19	4.42	4.41
query35	4.52	4.48	4.45
query36	0.64	0.47	0.46
query37	0.18	0.16	0.16
query38	0.15	0.15	0.14
query39	0.05	0.03	0.03
query40	0.17	0.17	0.14
query41	0.09	0.05	0.05
query42	0.06	0.05	0.04
query43	0.05	0.04	0.04
Total cold run time: 109.04 s
Total hot run time: 30.76 s

@airborne12
Copy link
Member Author

run buildall

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 36.44% (8989/24671)
Line Coverage: 28.00% (73668/263106)
Region Coverage: 27.47% (38261/139300)
Branch Coverage: 24.17% (19510/80716)
Coverage Report: http://coverage.selectdb-in.cc/coverage/ee61214d4a88760bb10070ead9779b5acb743544_ee61214d4a88760bb10070ead9779b5acb743544/report/index.html

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	18583	4380	4264	4264
q2	2019	189	197	189
q3	10450	1110	1043	1043
q4	10213	742	774	742
q5	8574	2676	2652	2652
q6	218	136	132	132
q7	973	595	593	593
q8	9211	2072	2096	2072
q9	9182	6632	6567	6567
q10	9170	3847	3917	3847
q11	455	250	244	244
q12	504	236	236	236
q13	18807	2994	3009	2994
q14	259	209	218	209
q15	521	484	487	484
q16	530	380	383	380
q17	967	761	754	754
q18	8672	7474	7458	7458
q19	7684	1568	1505	1505
q20	696	317	317	317
q21	4963	3126	3944	3126
q22	387	336	336	336
Total cold run time: 123038 ms
Total hot run time: 40144 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4409	4230	4365	4230
q2	384	288	299	288
q3	3163	2871	2928	2871
q4	2053	1699	1680	1680
q5	5394	5530	5556	5530
q6	218	128	125	125
q7	2233	1894	1879	1879
q8	3270	3416	3409	3409
q9	8820	8708	8639	8639
q10	3981	3828	3750	3750
q11	622	478	499	478
q12	813	631	647	631
q13	17306	3197	3096	3096
q14	296	269	267	267
q15	504	479	469	469
q16	484	427	431	427
q17	1820	1545	1500	1500
q18	8176	7806	7919	7806
q19	1833	1529	1636	1529
q20	2657	1848	1855	1848
q21	5708	4824	4976	4824
q22	633	541	544	541
Total cold run time: 74777 ms
Total hot run time: 55817 ms

@doris-robot
Copy link

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

query1	928	382	384	382
query2	6354	2346	2319	2319
query3	6642	203	207	203
query4	21603	17311	17350	17311
query5	3572	476	458	458
query6	240	161	156	156
query7	4576	295	289	289
query8	309	291	289	289
query9	8464	2383	2382	2382
query10	589	298	279	279
query11	10775	10317	10153	10153
query12	117	89	84	84
query13	1650	356	357	356
query14	10020	7741	7647	7647
query15	234	191	183	183
query16	7795	256	261	256
query17	1902	528	519	519
query18	1968	271	263	263
query19	198	150	154	150
query20	99	84	83	83
query21	218	132	128	128
query22	4618	4293	4192	4192
query23	33760	33687	33691	33687
query24	11073	2837	2981	2837
query25	627	399	358	358
query26	1165	156	154	154
query27	2823	319	316	316
query28	7512	2092	2099	2092
query29	890	619	612	612
query30	271	151	155	151
query31	974	755	770	755
query32	94	54	53	53
query33	751	283	280	280
query34	1038	496	479	479
query35	748	646	640	640
query36	1147	970	948	948
query37	147	71	74	71
query38	3006	2843	2803	2803
query39	864	836	841	836
query40	256	129	119	119
query41	54	54	45	45
query42	116	93	95	93
query43	558	522	559	522
query44	1200	712	719	712
query45	197	167	166	166
query46	1076	731	704	704
query47	1884	1788	1768	1768
query48	363	296	286	286
query49	909	387	400	387
query50	759	382	393	382
query51	6786	6707	6667	6667
query52	98	91	88	88
query53	367	282	281	281
query54	936	436	438	436
query55	75	74	71	71
query56	287	253	253	253
query57	1153	1066	1079	1066
query58	257	242	248	242
query59	3260	3456	3100	3100
query60	302	287	285	285
query61	113	130	87	87
query62	607	461	433	433
query63	314	286	293	286
query64	8837	2221	1745	1745
query65	3178	3144	3093	3093
query66	736	319	381	319
query67	15481	14988	14873	14873
query68	4470	532	536	532
query69	532	444	339	339
query70	1201	1102	1055	1055
query71	421	261	271	261
query72	7135	5476	2743	2743
query73	741	318	318	318
query74	5947	5560	5471	5471
query75	3435	2598	2682	2598
query76	2592	951	907	907
query77	520	301	300	300
query78	10344	9803	9848	9803
query79	2257	512	497	497
query80	789	465	475	465
query81	560	219	216	216
query82	891	106	102	102
query83	258	164	160	160
query84	246	84	83	83
query85	1427	316	313	313
query86	477	307	324	307
query87	3334	3082	3065	3065
query88	4016	2411	2324	2324
query89	462	385	373	373
query90	1745	184	187	184
query91	127	116	97	97
query92	60	48	49	48
query93	2032	508	501	501
query94	1066	180	182	180
query95	405	321	307	307
query96	588	267	262	262
query97	3246	3072	3038	3038
query98	217	198	191	191
query99	1159	840	828	828
Total cold run time: 272620 ms
Total hot run time: 171531 ms

@doris-robot
Copy link

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

query1	0.04	0.04	0.03
query2	0.08	0.03	0.04
query3	0.23	0.05	0.05
query4	1.68	0.06	0.07
query5	0.50	0.48	0.49
query6	1.13	0.72	0.72
query7	0.02	0.01	0.02
query8	0.05	0.04	0.04
query9	0.53	0.49	0.50
query10	0.55	0.54	0.54
query11	0.15	0.12	0.11
query12	0.15	0.12	0.12
query13	0.59	0.59	0.61
query14	0.80	0.78	0.77
query15	0.82	0.82	0.80
query16	0.35	0.37	0.36
query17	0.96	0.97	0.94
query18	0.24	0.23	0.23
query19	1.78	1.66	1.75
query20	0.01	0.01	0.00
query21	15.43	0.66	0.65
query22	4.66	7.10	2.06
query23	18.21	1.42	1.19
query24	2.15	0.24	0.21
query25	0.15	0.08	0.07
query26	0.27	0.17	0.17
query27	0.07	0.08	0.08
query28	13.16	1.03	0.99
query29	12.64	3.29	3.26
query30	0.27	0.06	0.06
query31	2.88	0.37	0.38
query32	3.29	0.47	0.47
query33	2.87	2.93	2.90
query34	17.23	4.45	4.45
query35	4.46	4.51	4.51
query36	0.66	0.46	0.49
query37	0.18	0.15	0.15
query38	0.16	0.14	0.14
query39	0.05	0.03	0.03
query40	0.17	0.15	0.14
query41	0.09	0.04	0.04
query42	0.05	0.06	0.04
query43	0.04	0.05	0.05
Total cold run time: 109.8 s
Total hot run time: 30.52 s

Copy link
Contributor

@xiaokang xiaokang left a comment

Choose a reason for hiding this comment

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

you can put core dump stack in pr description

@@ -2264,6 +2264,10 @@ Status SegmentIterator::_next_batch_internal(vectorized::Block* block) {
}
_current_return_columns.resize(_schema->columns().size());
_converted_column_ids.resize(_schema->columns().size(), 0);
if (_char_type_idx.empty() && _char_type_idx_no_0.empty()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

add comment to explain why move _vec_init_char_column_id() to here.

_char_type_idx_no_0.emplace_back(i);
// The additional deleted filter condition will be in the materialized column at the end of the block.
// After _output_column_by_sel_idx, it will be erased, so we do not need to shrink it.
if (i < block->columns()) {
Copy link
Member

Choose a reason for hiding this comment

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

why add this if branch? _has_char_type for delete predicate column should always be false?

Copy link
Member Author

Choose a reason for hiding this comment

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

_char_type_idx should not include delete predicate column

Copy link
Contributor

@zzzxl1993 zzzxl1993 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

PR approved by anyone and no changes requested.

Copy link
Member

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

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

@eldenmoon eldenmoon merged commit b1a26d0 into apache:master Jun 18, 2024
34 of 41 checks passed
airborne12 added a commit to airborne12/apache-doris that referenced this pull request Jun 18, 2024
…6275)

If we execute a delete predicate in an inverted index table and then
query something from it, it will cause a core dump in
shrink_char_type_column_suffix_zero. This occurs because the delete
predicate column ID in _char_type_idx is incorrectly shifted to the
result column inserted by the inverted index result.

coredump stack like:
```
COULD NOT CREATE A LOGGINGFILE 20240604-145331!F20240604 14:53:31.991016 24178 column.h:134] Cannot get_shrinked_column() column Const(UInt8)
*** Check failure stack trace: ***
F20240604 14:53:31.991436 24158 column.h:134] Cannot get_shrinked_column() column Const(UInt8)
*** Check failure stack trace: ***
F20240604 14:53:31.991436 24158 column.h:134] Cannot get_shrinked_column() column Const(UInt8)F20240604 14:53:31.991645 24160 column.h:134] Cannot get_shrinked_column() column Const(UInt8)

    at /home/zcp/repo_center/doris_release/doris/be/src/vec/core/block.cpp:1126
    at /home/zcp/repo_center/doris_release/doris/be/src/olap/rowset/segment_v2/segment_iterator.cpp:2408
    at /home/zcp/repo_center/doris_release/doris/be/src/olap/rowset/segment_v2/segment_iterator.cpp:2090
    at /home/zcp/repo_center/doris_release/doris/be/src/olap/rowset/beta_rowset_reader.cpp:342
    at /home/zcp/repo_center/doris_release/doris/be/src/vec/olap/vcollect_iterator.h:256
    at /home/zcp/repo_center/doris_release/doris/be/src/vec/olap/vcollect_iterator.cpp:514
    at /home/zcp/repo_center/doris_release/doris/be/src/vec/olap/vcollect_iterator.cpp:493
    at /home/zcp/repo_center/doris_release/doris/be/src/vec/olap/vcollect_iterator.cpp:692
    at /home/zcp/repo_center/doris_release/doris/be/src/vec/olap/vcollect_iterator.cpp:186
    at /home/zcp/repo_center/doris_release/doris/be/src/vec/olap/block_reader.cpp:156
    at /home/zcp/repo_center/doris_release/doris/be/src/vec/olap/block_reader.cpp:228
--Type <RET> for more, q to quit, c to continue without paging--c
    at /home/zcp/repo_center/doris_release/doris/be/src/vec/exec/scan/new_olap_scanner.cpp:227
```
airborne12 added a commit to airborne12/apache-doris that referenced this pull request Jun 18, 2024
…6275)

If we execute a delete predicate in an inverted index table and then
query something from it, it will cause a core dump in
shrink_char_type_column_suffix_zero. This occurs because the delete
predicate column ID in _char_type_idx is incorrectly shifted to the
result column inserted by the inverted index result.

coredump stack like:
```
COULD NOT CREATE A LOGGINGFILE 20240604-145331!F20240604 14:53:31.991016 24178 column.h:134] Cannot get_shrinked_column() column Const(UInt8)
*** Check failure stack trace: ***
F20240604 14:53:31.991436 24158 column.h:134] Cannot get_shrinked_column() column Const(UInt8)
*** Check failure stack trace: ***
F20240604 14:53:31.991436 24158 column.h:134] Cannot get_shrinked_column() column Const(UInt8)F20240604 14:53:31.991645 24160 column.h:134] Cannot get_shrinked_column() column Const(UInt8)

#0  0x00007fa0bf784387 in ?? () from /mnt/disk2/tengjianping/local/ldb_toolchain/lib/libc.so.6
#1  0x0000557dc8e617a0 in google::LogMessage::Flush() ()
#2  0x0000557dc8e65599 in google::LogMessageFatal::~LogMessageFatal() ()
apache#3  0x0000557dbe4ec939 in doris::vectorized::IColumn::get_shrinked_column (this=0x7fa094ac16a0) at /home/zcp/repo_center/doris_release/doris/be/src/vec/columns/column.h:134
apache#4  0x0000557dc236d8a2 in doris::vectorized::Block::shrink_char_type_column_suffix_zero (this=0x7f9a372a4b70, char_type_idx=...)
    at /home/zcp/repo_center/doris_release/doris/be/src/vec/core/block.cpp:1126
apache#5  0x0000557dbee9ea95 in doris::segment_v2::SegmentIterator::_next_batch_internal (this=<optimized out>, block=0x7f9a372a4b70)
    at /home/zcp/repo_center/doris_release/doris/be/src/olap/rowset/segment_v2/segment_iterator.cpp:2408
apache#6  0x0000557dbee9cc5a in doris::segment_v2::SegmentIterator::next_batch(doris::vectorized::Block*)::$_0::operator()() const (this=<optimized out>)
    at /home/zcp/repo_center/doris_release/doris/be/src/olap/rowset/segment_v2/segment_iterator.cpp:2090
apache#7  doris::segment_v2::SegmentIterator::next_batch (this=0x1c5d, block=0x6) at /home/zcp/repo_center/doris_release/doris/be/src/olap/rowset/segment_v2/segment_iterator.cpp:2089
apache#8  0x0000557dbeebbb44 in doris::BetaRowsetReader::next_block (this=0x7f9a3a041600, block=0x7f9a372a4b70)
    at /home/zcp/repo_center/doris_release/doris/be/src/olap/rowset/beta_rowset_reader.cpp:342
apache#9  0x0000557dc8590ddd in doris::vectorized::VCollectIterator::Level0Iterator::_refresh (this=0x7f9a372a1be0)
    at /home/zcp/repo_center/doris_release/doris/be/src/vec/olap/vcollect_iterator.h:256
apache#10 doris::vectorized::VCollectIterator::Level0Iterator::refresh_current_row (this=0x7f9a372a1be0)
    at /home/zcp/repo_center/doris_release/doris/be/src/vec/olap/vcollect_iterator.cpp:514
apache#11 0x0000557dc8591055 in doris::vectorized::VCollectIterator::Level0Iterator::ensure_first_row_ref (this=0x1c5d)
    at /home/zcp/repo_center/doris_release/doris/be/src/vec/olap/vcollect_iterator.cpp:493
apache#12 0x0000557dc85934f2 in doris::vectorized::VCollectIterator::Level1Iterator::ensure_first_row_ref (this=0x7fa090e36c00)
    at /home/zcp/repo_center/doris_release/doris/be/src/vec/olap/vcollect_iterator.cpp:692
apache#13 0x0000557dc858ddc9 in doris::vectorized::VCollectIterator::build_heap (this=0x7f9d80976dc0, rs_readers=...)
    at /home/zcp/repo_center/doris_release/doris/be/src/vec/olap/vcollect_iterator.cpp:186
apache#14 0x0000557dc857e808 in doris::vectorized::BlockReader::_init_collect_iter (this=this@entry=0x7f9d80976800, read_params=...)
    at /home/zcp/repo_center/doris_release/doris/be/src/vec/olap/block_reader.cpp:156
apache#15 0x0000557dc857f64d in doris::vectorized::BlockReader::init (this=<optimized out>, read_params=...)
    at /home/zcp/repo_center/doris_release/doris/be/src/vec/olap/block_reader.cpp:228
apache#16 0x0000557dc370dc2c in doris::vectorized::NewOlapScanner::open (this=0x7f9a2aa68210, state=<optimized out>)
--Type <RET> for more, q to quit, c to continue without paging--c
    at /home/zcp/repo_center/doris_release/doris/be/src/vec/exec/scan/new_olap_scanner.cpp:227
apache#17 0x0000557dc3718d89 in doris::vectorized::ScannerScheduler::_scanner_scan (ctx=std::shared_ptr<doris::vectorized::ScannerContext> (use count 4, weak count 1) = {...}, scan_task=std::shared_ptr<doris::vectorized::ScanTask> (use count 2, weak count 0) = {...}) at /home/zcp/repo_center/doris_release/doris/be/src/vec/exec/scan/scanner_scheduler.cpp:242
apache#18 0x0000557dc3719b77 in doris::vectorized::ScannerScheduler::submit(std::shared_ptr<doris::vectorized::ScannerContext>, std::shared_ptr<doris::vectorized::ScanTask>)::$_1::operator()() const (this=0x0) at /home/zcp/repo_center/doris_release/doris/be/src/vec/exec/scan/scanner_scheduler.cpp:158
apache#19 std::__invoke_impl<void, doris::vectorized::ScannerScheduler::submit(std::shared_ptr<doris::vectorized::ScannerContext>, std::shared_ptr<doris::vectorized::ScanTask>)::$_1&>(std::__invoke_other, doris::vectorized::ScannerScheduler::submit(std::shared_ptr<doris::vectorized::ScannerContext>, std::shared_ptr<doris::vectorized::ScanTask>)::$_1&) (__f=...) at /var/local/ldb_toolchain/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/invoke.h:61
apache#20 std::__invoke_r<void, doris::vectorized::ScannerScheduler::submit(std::shared_ptr<doris::vectorized::ScannerContext>, std::shared_ptr<doris::vectorized::ScanTask>)::$_1&>(doris::vectorized::ScannerScheduler::submit(std::shared_ptr<doris::vectorized::ScannerContext>, std::shared_ptr<doris::vectorized::ScanTask>)::$_1&) (__fn=...) at /var/local/ldb_toolchain/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/invoke.h:111
apache#21 std::_Function_handler<void (), doris::vectorized::ScannerScheduler::submit(std::shared_ptr<doris::vectorized::ScannerContext>, std::shared_ptr<doris::vectorized::ScanTask>)::$_1>::_M_invoke(std::_Any_data const&) (__functor=...) at /var/local/ldb_toolchain/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/std_function.h:291
apache#22 0x0000557dbf3c7788 in doris::ThreadPool::dispatch_thread (this=0x7f9d0bbdc400) at /home/zcp/repo_center/doris_release/doris/be/src/util/threadpool.cpp:543
apache#23 0x0000557dbf3bcb41 in std::function<void ()>::operator()() const (this=0x1471) at /var/local/ldb_toolchain/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/std_function.h:560
apache#24 doris::Thread::supervise_thread (arg=0x7f9d0bbdf4c0) at /home/zcp/repo_center/doris_release/doris/be/src/util/thread.cpp:498
apache#25 0x00007fa0bee1dea5 in sem_open () from /mnt/disk2/tengjianping/local/ldb_toolchain/lib/libpthread.so.0
```
airborne12 added a commit that referenced this pull request Jun 18, 2024
@airborne12 airborne12 removed the p0_c label Jun 19, 2024
dataroaring pushed a commit that referenced this pull request Jun 21, 2024
If we execute a delete predicate in an inverted index table and then
query something from it, it will cause a core dump in
shrink_char_type_column_suffix_zero. This occurs because the delete
predicate column ID in _char_type_idx is incorrectly shifted to the
result column inserted by the inverted index result.

coredump stack like:
```
COULD NOT CREATE A LOGGINGFILE 20240604-145331!F20240604 14:53:31.991016 24178 column.h:134] Cannot get_shrinked_column() column Const(UInt8)
*** Check failure stack trace: ***
F20240604 14:53:31.991436 24158 column.h:134] Cannot get_shrinked_column() column Const(UInt8)
*** Check failure stack trace: ***
F20240604 14:53:31.991436 24158 column.h:134] Cannot get_shrinked_column() column Const(UInt8)F20240604 14:53:31.991645 24160 column.h:134] Cannot get_shrinked_column() column Const(UInt8)

#0  0x00007fa0bf784387 in ?? () from /mnt/disk2/tengjianping/local/ldb_toolchain/lib/libc.so.6
#1  0x0000557dc8e617a0 in google::LogMessage::Flush() ()
#2  0x0000557dc8e65599 in google::LogMessageFatal::~LogMessageFatal() ()
#3  0x0000557dbe4ec939 in doris::vectorized::IColumn::get_shrinked_column (this=0x7fa094ac16a0) at /home/zcp/repo_center/doris_release/doris/be/src/vec/columns/column.h:134
#4  0x0000557dc236d8a2 in doris::vectorized::Block::shrink_char_type_column_suffix_zero (this=0x7f9a372a4b70, char_type_idx=...)
    at /home/zcp/repo_center/doris_release/doris/be/src/vec/core/block.cpp:1126
#5  0x0000557dbee9ea95 in doris::segment_v2::SegmentIterator::_next_batch_internal (this=<optimized out>, block=0x7f9a372a4b70)
    at /home/zcp/repo_center/doris_release/doris/be/src/olap/rowset/segment_v2/segment_iterator.cpp:2408
#6  0x0000557dbee9cc5a in doris::segment_v2::SegmentIterator::next_batch(doris::vectorized::Block*)::$_0::operator()() const (this=<optimized out>)
    at /home/zcp/repo_center/doris_release/doris/be/src/olap/rowset/segment_v2/segment_iterator.cpp:2090
#7  doris::segment_v2::SegmentIterator::next_batch (this=0x1c5d, block=0x6) at /home/zcp/repo_center/doris_release/doris/be/src/olap/rowset/segment_v2/segment_iterator.cpp:2089
#8  0x0000557dbeebbb44 in doris::BetaRowsetReader::next_block (this=0x7f9a3a041600, block=0x7f9a372a4b70)
    at /home/zcp/repo_center/doris_release/doris/be/src/olap/rowset/beta_rowset_reader.cpp:342
#9  0x0000557dc8590ddd in doris::vectorized::VCollectIterator::Level0Iterator::_refresh (this=0x7f9a372a1be0)
    at /home/zcp/repo_center/doris_release/doris/be/src/vec/olap/vcollect_iterator.h:256
#10 doris::vectorized::VCollectIterator::Level0Iterator::refresh_current_row (this=0x7f9a372a1be0)
    at /home/zcp/repo_center/doris_release/doris/be/src/vec/olap/vcollect_iterator.cpp:514
#11 0x0000557dc8591055 in doris::vectorized::VCollectIterator::Level0Iterator::ensure_first_row_ref (this=0x1c5d)
    at /home/zcp/repo_center/doris_release/doris/be/src/vec/olap/vcollect_iterator.cpp:493
#12 0x0000557dc85934f2 in doris::vectorized::VCollectIterator::Level1Iterator::ensure_first_row_ref (this=0x7fa090e36c00)
    at /home/zcp/repo_center/doris_release/doris/be/src/vec/olap/vcollect_iterator.cpp:692
#13 0x0000557dc858ddc9 in doris::vectorized::VCollectIterator::build_heap (this=0x7f9d80976dc0, rs_readers=...)
    at /home/zcp/repo_center/doris_release/doris/be/src/vec/olap/vcollect_iterator.cpp:186
#14 0x0000557dc857e808 in doris::vectorized::BlockReader::_init_collect_iter (this=this@entry=0x7f9d80976800, read_params=...)
    at /home/zcp/repo_center/doris_release/doris/be/src/vec/olap/block_reader.cpp:156
#15 0x0000557dc857f64d in doris::vectorized::BlockReader::init (this=<optimized out>, read_params=...)
    at /home/zcp/repo_center/doris_release/doris/be/src/vec/olap/block_reader.cpp:228
#16 0x0000557dc370dc2c in doris::vectorized::NewOlapScanner::open (this=0x7f9a2aa68210, state=<optimized out>)
--Type <RET> for more, q to quit, c to continue without paging--c
    at /home/zcp/repo_center/doris_release/doris/be/src/vec/exec/scan/new_olap_scanner.cpp:227
#17 0x0000557dc3718d89 in doris::vectorized::ScannerScheduler::_scanner_scan (ctx=std::shared_ptr<doris::vectorized::ScannerContext> (use count 4, weak count 1) = {...}, scan_task=std::shared_ptr<doris::vectorized::ScanTask> (use count 2, weak count 0) = {...}) at /home/zcp/repo_center/doris_release/doris/be/src/vec/exec/scan/scanner_scheduler.cpp:242
#18 0x0000557dc3719b77 in doris::vectorized::ScannerScheduler::submit(std::shared_ptr<doris::vectorized::ScannerContext>, std::shared_ptr<doris::vectorized::ScanTask>)::$_1::operator()() const (this=0x0) at /home/zcp/repo_center/doris_release/doris/be/src/vec/exec/scan/scanner_scheduler.cpp:158
#19 std::__invoke_impl<void, doris::vectorized::ScannerScheduler::submit(std::shared_ptr<doris::vectorized::ScannerContext>, std::shared_ptr<doris::vectorized::ScanTask>)::$_1&>(std::__invoke_other, doris::vectorized::ScannerScheduler::submit(std::shared_ptr<doris::vectorized::ScannerContext>, std::shared_ptr<doris::vectorized::ScanTask>)::$_1&) (__f=...) at /var/local/ldb_toolchain/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/invoke.h:61
#20 std::__invoke_r<void, doris::vectorized::ScannerScheduler::submit(std::shared_ptr<doris::vectorized::ScannerContext>, std::shared_ptr<doris::vectorized::ScanTask>)::$_1&>(doris::vectorized::ScannerScheduler::submit(std::shared_ptr<doris::vectorized::ScannerContext>, std::shared_ptr<doris::vectorized::ScanTask>)::$_1&) (__fn=...) at /var/local/ldb_toolchain/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/invoke.h:111
#21 std::_Function_handler<void (), doris::vectorized::ScannerScheduler::submit(std::shared_ptr<doris::vectorized::ScannerContext>, std::shared_ptr<doris::vectorized::ScanTask>)::$_1>::_M_invoke(std::_Any_data const&) (__functor=...) at /var/local/ldb_toolchain/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/std_function.h:291
#22 0x0000557dbf3c7788 in doris::ThreadPool::dispatch_thread (this=0x7f9d0bbdc400) at /home/zcp/repo_center/doris_release/doris/be/src/util/threadpool.cpp:543
#23 0x0000557dbf3bcb41 in std::function<void ()>::operator()() const (this=0x1471) at /var/local/ldb_toolchain/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/std_function.h:560
#24 doris::Thread::supervise_thread (arg=0x7f9d0bbdf4c0) at /home/zcp/repo_center/doris_release/doris/be/src/util/thread.cpp:498
#25 0x00007fa0bee1dea5 in sem_open () from /mnt/disk2/tengjianping/local/ldb_toolchain/lib/libpthread.so.0
```
mongo360 pushed a commit to mongo360/doris that referenced this pull request Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants