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

TiFlash crash when PreHandleSnapshot #4072

Closed
lilinghai opened this issue Feb 21, 2022 · 0 comments · Fixed by #4140
Closed

TiFlash crash when PreHandleSnapshot #4072

lilinghai opened this issue Feb 21, 2022 · 0 comments · Fixed by #4140
Assignees
Labels
affects-5.4 This bug affects the 5.4.x(LTS) versions. severity/critical type/bug The issue is confirmed as a bug.

Comments

@lilinghai
Copy link

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

chbenmark ddl

2. What did you expect to see? (Required)

successfully

3. What did you see instead (Required)

crash

[2022/02/19 19:01:11.669 +08:00] [ERROR] [<unknown>] ["DB::RawCppPtr DB::PreHandleSnapshot(DB::EngineStoreServerWrap *, DB::BaseBuffView, uint64_t, DB::SSTViewVec, uint64_t, uint64_t):Code: 0, e.displayText() = DB::Exception: Have not processed type: 577005919, e.what() = DB::Exception, Stack trace:
0. /tiflash/tiflash(StackTrace::StackTrace()+0x13) [0x4d16683]
1. /tiflash/tiflash(DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int)+0x26) [0x4d13c86]
2. /tiflash/tiflash(TiDB::ColumnInfo::defaultValueToField() const+0x245) [0xa6ade95]
3. /tiflash/tiflash(bool DB::appendRowV2ToBlockImpl<false>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::__map_const_iterator<std::__1::__tree_const_iterator<std::__1::__value_type<long, unsigned long>, std::__1::__tree_node<std::__1::__value_type<long, unsigned long>, void*>*, long> >, std::__1::__map_const_iterator<std::__1::__tree_const_iterator<std::__1::__value_type<long, unsigned long>, std::__1::__tree_node<std::__1::__value_type<long, unsigned long>, void*>*, long> >, DB::Block&, unsigned long, std::__1::vector<TiDB::ColumnInfo const*, std::__1::allocator<TiDB::ColumnInfo const*> > const&, long, bool)+0x7b1) [0xa65ecc1]
4. /tiflash/tiflash(DB::appendRowToBlock(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::__map_const_iterator<std::__1::__tree_const_iterator<std::__1::__value_type<long, unsigned long>, std::__1::__tree_node<std::__1::__value_type<long, unsigned long>, void*>*, long> >, std::__1::__map_const_iterator<std::__1::__tree_const_iterator<std::__1::__value_type<long, unsigned long>, std::__1::__tree_node<std::__1::__value_type<long, unsigned long>, void*>*, long> >, DB::Block&, unsigned long, std::__1::vector<TiDB::ColumnInfo const*, std::__1::allocator<TiDB::ColumnInfo const*> > const&, long, bool)+0x3b) [0xa65be1b]
5. /tiflash/tiflash(bool DB::RegionBlockReader::readImpl<(DB::TMTPKType)0>(DB::Block&, std::__1::vector<std::__1::tuple<DB::RawTiDBPK, unsigned char, unsigned long, std::__1::shared_ptr<DB::StringObject<false> const> >, std::__1::allocator<std::__1::tuple<DB::RawTiDBPK, unsigned char, unsigned long, std::__1::shared_ptr<DB::StringObject<false> const> > > > const&, bool)+0x61d) [0xa63038d]
6. /tiflash/tiflash(DB::GenRegionBlockDataWithSchema(std::__1::shared_ptr<DB::Region> const&, std::__1::shared_ptr<DB::DecodingStorageSchemaSnapshot const> const&, unsigned long, bool, DB::TMTContext&)+0x3c3) [0xa60a743]
7. /tiflash/tiflash(DB::DM::SSTFilesToBlockInputStream::readCommitedBlock()+0x76) [0xa5c9fc6]
8. /tiflash/tiflash(DB::DM::SSTFilesToBlockInputStream::read()+0x317) [0xa5c9777]
9. /tiflash/tiflash(DB::DM::readNextBlock(std::__1::shared_ptr<DB::IBlockInputStream> const&)+0x25) [0xa4ebeb5]
10. /tiflash/tiflash(DB::DM::PKSquashingBlockInputStream<true>::read()+0x23e) [0xa5ccdce]
11. /tiflash/tiflash(DB::DM::readNextBlock(std::__1::shared_ptr<DB::IBlockInputStream> const&)+0x25) [0xa4ebeb5]
12. /tiflash/tiflash(DB::DM::DMVersionFilterBlockInputStream<1>::initNextBlock()+0x25) [0xa513385]
13. /tiflash/tiflash(DB::DM::DMVersionFilterBlockInputStream<1>::read(DB::PODArray<unsigned char, 4096ul, Allocator<false>, 15ul, 16ul>*&, bool)+0x13b9) [0xa512bf9]
14. /tiflash/tiflash(DB::DM::DMVersionFilterBlockInputStream<1>::read()+0x15) [0xa4fb9a5]
15. /tiflash/tiflash(DB::DM::BoundedSSTFilesToBlockInputStream::read()+0x13) [0xa5ca3b3]
16. /tiflash/tiflash(DB::DM::SSTFilesToDTFilesOutputStream::write()+0x5b) [0xa5cedcb]
17. /tiflash/tiflash(DB::KVStore::preHandleSSTsToDTFiles(std::__1::shared_ptr<DB::Region>, DB::SSTViewVec, unsigned long, unsigned long, DB::DM::FileConvertJobType, DB::TMTContext&)+0x2e6) [0xa5bfed6]
18. /tiflash/tiflash(DB::KVStore::preHandleSnapshotToFiles(std::__1::shared_ptr<DB::Region>, DB::SSTViewVec, unsigned long, unsigned long, DB::TMTContext&)+0x45) [0xa5bfb95]
19. /tiflash/tiflash(PreHandleSnapshot+0xc4) [0xa611164]
20. /tiflash/libtiflash_proxy.so(+0x10a7f24) [0x7f0782873f24]
21. /tiflash/libtiflash_proxy.so(+0x108df10) [0x7f0782859f10]
22. /tiflash/libtiflash_proxy.so(+0x18ca423) [0x7f0783096423]
23. /tiflash/libtiflash_proxy.so(+0x23fda46) [0x7f0783bc9a46]
24. /tiflash/libtiflash_proxy.so(+0x23f3368) [0x7f0783bbf368]
25. /tiflash/libtiflash_proxy.so(+0x23f4e2b) [0x7f0783bc0e2b]
26. /tiflash/libtiflash_proxy.so(+0x1b9c0db) [0x7f07833680db]
27. /lib64/libpthread.so.0(+0x7ea5) [0x7f0780ea9ea5]
28. /lib64/libc.so.6(clone+0x6d) [0x7f07809bc96d]
"] [thread_id=18]

4. What is your TiFlash version? (Required)

master nightly

@lilinghai lilinghai added the type/bug The issue is confirmed as a bug. label Feb 21, 2022
ti-chi-bot pushed a commit that referenced this issue Feb 25, 2022
lidezhu added a commit to lidezhu/tics that referenced this issue Apr 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-5.4 This bug affects the 5.4.x(LTS) versions. severity/critical type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants