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](sink) The issue with 2GB limit of protocol buffer (#37990) #39112

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

mrhhsg
Copy link
Member

@mrhhsg mrhhsg commented Aug 8, 2024

Fail to serialize doris.PFetchDataResult

If the size of PFetchDataResult is greater than 2G, protocol buffer cannot serialize the message.

pick #37990

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

@mrhhsg
Copy link
Member Author

mrhhsg commented Aug 8, 2024

run buildall

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

RETURN_IF_ERROR(VExprContext::get_output_block_after_execute_exprs(_output_vexpr_ctxs,
input_block, &block));
template <bool is_binary_format>
Status VMysqlResultWriter<is_binary_format>::_write_one_block(RuntimeState* state, Block& block) {
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: function '_write_one_block' exceeds recommended size/complexity thresholds [readability-function-size]

Status VMysqlResultWriter<is_binary_format>::_write_one_block(RuntimeState* state, Block& block) {
                                             ^
Additional context

be/src/vec/sink/vmysql_result_writer.cpp:148: 95 lines including whitespace and comments (threshold 80)

Status VMysqlResultWriter<is_binary_format>::_write_one_block(RuntimeState* state, Block& block) {
                                             ^

```
Fail to serialize doris.PFetchDataResult
```

If the size of `PFetchDataResult` is greater than 2G, protocol buffer
cannot serialize the message.
@mrhhsg
Copy link
Member Author

mrhhsg commented Aug 8, 2024

run buildall

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

RETURN_IF_ERROR(VExprContext::get_output_block_after_execute_exprs(_output_vexpr_ctxs,
input_block, &block));
template <bool is_binary_format>
Status VMysqlResultWriter<is_binary_format>::_write_one_block(Block& block) {
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: function '_write_one_block' exceeds recommended size/complexity thresholds [readability-function-size]

Status VMysqlResultWriter<is_binary_format>::_write_one_block(Block& block) {
                                             ^
Additional context

be/src/vec/sink/vmysql_result_writer.cpp:148: 95 lines including whitespace and comments (threshold 80)

Status VMysqlResultWriter<is_binary_format>::_write_one_block(Block& block) {
                                             ^

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 36.38% (9263/25464)
Line Coverage: 27.84% (75702/271889)
Region Coverage: 26.70% (38952/145864)
Branch Coverage: 23.42% (19762/84392)
Coverage Report: http://coverage.selectdb-in.cc/coverage/20125c938fa54b471ce4340d61c4d3fc7fcc929a_20125c938fa54b471ce4340d61c4d3fc7fcc929a/report/index.html

@yiguolei yiguolei merged commit 0571342 into apache:branch-2.1 Aug 8, 2024
19 of 21 checks passed
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