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

htap ddl daily tests failed: DB::Exception: Reading with fields but entry size is 0 #6726

Closed
solotzg opened this issue Feb 3, 2023 · 1 comment · Fixed by #6729
Closed

Comments

@solotzg
Copy link
Contributor

solotzg commented Feb 3, 2023

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

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

3. What did you see instead (Required)

[2023/02/03 04:36:34.792 +08:00] [ERROR] [SegmentReader.cpp:122] ["ErrMsg: Reading with fields but entry size is 0. StackTrace 
       0x192865e    DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) [tiflash+26379870]
                    dbms/src/Common/Exception.h:46
       0x7b8fb78    DB::PS::V3::BlobStore::read(std::__1::vector<DB::PS::V3::BlobStore::FieldReadInfo, std::__1::allocator<DB::PS::V3::BlobStore::FieldReadInfo> >&, std::__1::shared_ptr<DB::ReadLimiter> const&) [tiflash+129563512]
                    dbms/src/Storages/Page/V3/BlobStore.cpp:585
       0x7bb6a5b    DB::PS::V3::PageStorageImpl::readImpl(unsigned long, std::__1::vector<std::__1::pair<unsigned long, std::__1::vector<unsigned long, std::__1::allocator<unsigned long> > >, std::__1::allocator<std::__1::pair<unsigned long, std::__1::vector<unsigned long, std::__1::allocator<unsigned long> > > > > const&, std::__1::shared_ptr<DB::ReadLimiter> const&, std::__1::shared_ptr<DB::PageStorageSnapshot>, bool) [tiflash+129722971]
                    dbms/src/Storages/Page/V3/PageStorageImpl.cpp:240
       0x7be40a0    DB::PageReaderImplNormal::read(std::__1::vector<std::__1::pair<unsigned long, std::__1::vector<unsigned long, std::__1::allocator<unsigned long> > >, std::__1::allocator<std::__1::pair<unsigned long, std::__1::vector<unsigned long, std::__1::allocator<unsigned long> > > > > const&) const [tiflash+129908896]
                    dbms/src/Storages/Page/PageStorage.cpp:109
       0x798403a    DB::DM::ColumnFileTiny::fillColumns(DB::PageReader const&, std::__1::vector<DB::DM::ColumnDefine, std::__1::allocator<DB::DM::ColumnDefine> > const&, unsigned long, std::__1::vector<COWPtr<DB::IColumn>::immutable_ptr<DB::IColumn>, std::__1::allocator<COWPtr<DB::IColumn>::immutable_ptr<DB::IColumn> > >&) const [tiflash+127418426]
                    dbms/src/Storages/DeltaMerge/ColumnFile/ColumnFileTiny.cpp:115
       0x79858b4    DB::DM::ColumnFileTinyReader::readNextBlock() [tiflash+127424692]
                    dbms/src/Storages/DeltaMerge/ColumnFile/ColumnFileTiny.cpp:241
       0x78c8bc2    DB::DM::ColumnFileSetInputStream::read() [tiflash+126651330]
                    dbms/src/Storages/DeltaMerge/ColumnFile/ColumnFileSetReader.h:110
       0x78c8652    DB::DM::DeltaValueInputStream::read() [tiflash+126649938]
                    dbms/src/Storages/DeltaMerge/Delta/DeltaValueSpace.h:439
       0x791136c    DB::DM::BitmapFilterBlockInputStream::readImpl(DB::PODArray<unsigned char, 4096ul, Allocator<false>, 15ul, 16ul>*&, bool) [tiflash+126948204]
                    dbms/src/Storages/DeltaMerge/BitmapFilter/BitmapFilterBlockInputStream.cpp:38
       0x7911d34    DB::DM::BitmapFilterBlockInputStream::readImpl() [tiflash+126950708]
                    dbms/src/Storages/DeltaMerge/BitmapFilter/BitmapFilterBlockInputStream.h:45
       0x7098775    DB::IProfilingBlockInputStream::read(DB::PODArray<unsigned char, 4096ul, Allocator<false>, 15ul, 16ul>*&, bool) [tiflash+118065013]
                    dbms/src/DataStreams/IProfilingBlockInputStream.cpp:75
       0x7098465    DB::IProfilingBlockInputStream::read() [tiflash+118064229]
                    dbms/src/DataStreams/IProfilingBlockInputStream.cpp:43
       0x78efd84    DB::DM::SegmentReadTaskPool::readOneBlock(std::__1::shared_ptr<DB::IBlockInputStream>&, std::__1::shared_ptr<DB::DM::Segment> const&) [tiflash+126811524]
                    dbms/src/Storages/DeltaMerge/SegmentReadTaskPool.cpp:241
       0x79cca3a    DB::DM::SegmentReader::run() [tiflash+127715898]
                    dbms/src/Storages/DeltaMerge/ReadThread/SegmentReader.cpp:152
       0x79ce042    void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (DB::DM::SegmentReader::*)(), DB::DM::SegmentReader*> >(void*) [tiflash+127721538]
                    /usr/local/bin/../include/c++/v1/thread:291
  0x7f717e9ca6c2    start_thread [libc.so.6+673474]
  0x7f717e96a2b4    clone [libc.so.6+279220]"] [source=SegmentReader] [thread_id=35]

4. What is your TiFlash version? (Required)

1bad64f

@JaySon-Huang
Copy link
Contributor

Fixed by #6729

Workaround: Read an old column along with the newly added column

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

Successfully merging a pull request may close this issue.

3 participants