Skip to content

Conversation

@liaoxin01
Copy link
Contributor

cherry pick from #37500

…ck (apache#37500)

## Proposed changes

F20240704 15:35:33.724236 2556376 vtablet_writer.cpp:614] Check failed:
block.rows() == request->tablet_ids_size() block rows: 12192,
tablet_ids_size: 8128
*** Check failure stack trace: ***
    @     0x5612d9ebf696  google::LogMessage::SendToLog()
    @     0x5612d9ebc0e0  google::LogMessage::Flush()
    @     0x5612d9ebfed9  google::LogMessageFatal::~LogMessageFatal()
@ 0x5612d96a1770
doris::vectorized::VNodeChannel::try_send_pending_block()
    @     0x5612d0541e98  doris::ThreadPool::dispatch_thread()
    @     0x5612d0537251  doris::Thread::supervise_thread()
    @     0x7f02d4061ac3  (unknown)
    @     0x7f02d40f3850  (unknown)
    @              (nil)  (unknown)

The reason for this issue is due to a failed return from
`append_to_block_by_selector`. The reason for the failure here is that
the memory exceeded the limit. The previous column append was
successful, while the subsequent columns failed to allocate memory. The
failure was directly returned from here, and the subsequent
_cur_add_block_request was not executed.
However, if the NodeChannel is not cancelled, the next add block will
succeed, causing the block's rows to have an additional batch size
(4064) compared to the tablet id's size, ultimately triggering the
failure of the check.

<!--Describe your changes.-->
@liaoxin01
Copy link
Contributor Author

run buildall

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

@github-actions
Copy link
Contributor

github-actions bot commented Jul 9, 2024

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

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 36.33% (9152/25193)
Line Coverage: 27.87% (74737/268176)
Region Coverage: 26.76% (38549/144054)
Branch Coverage: 23.46% (19535/83282)
Coverage Report: http://coverage.selectdb-in.cc/coverage/a252ea4f8e9ad5c69b97c63dbe3cd186b5853cef_a252ea4f8e9ad5c69b97c63dbe3cd186b5853cef/report/index.html

@liaoxin01 liaoxin01 merged commit 7cda8db into apache:branch-2.1 Jul 9, 2024
@liaoxin01 liaoxin01 deleted the pick_37500_to_origin_branch-2.1 branch July 9, 2024 09:01
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.

2 participants