Uh oh!
There was an error while loading. Please reload this page.
[fix](thrift) Pick THRIFT-5492: Add readEnd to TBufferedTransport - #49649
Merged
Conversation
From https://issues.apache.org/jira/browse/THRIFT-5492: The remainingMessageSize_ is decremented as messages are parsed, for example when parsing a field in the message that is of type binary I see the code calling readStringBody in TBinaryProtocol.tcc:455 which then calls this->trans_->consume(size) which goes to TBufferTransports.h:124 and calls countConsumedMessageBytes which finally decrements remainingMessageSize_. However, nothing ever resets remainingMessageSize_, so after it is decremented from 100*1024*1024 down to zero it fails with an END_OF_FILE exception.
Thearas
commented
Mar 28, 2025
Contributor
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
Contributor
PR approved by at least one committer and no changes requested. |
Contributor
PR approved by anyone and no changes requested. |
w41ter
commented
Mar 28, 2025
ContributorAuthor
run buildall |
doris-robot
commented
Mar 28, 2025
TPC-H: Total hot run time: 33950 ms |
doris-robot
commented
Mar 28, 2025
TPC-DS: Total hot run time: 185737 ms |
doris-robot
commented
Mar 28, 2025
ClickBench: Total hot run time: 31.18 s |
hello-stephen
commented
Mar 28, 2025
Contributor
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
yiguolei
approved these changes
Mar 29, 2025
Closed
koarz pushed a commit
to koarz/doris
that referenced
this pull request
Jun 4, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
From https://issues.apache.org/jira/browse/THRIFT-5492:
The remainingMessageSize_ is decremented as messages are parsed, for example when parsing a field in the message that is of type binary I see the code calling readStringBody in TBinaryProtocol.tcc:455 which then calls this->trans_->consume(size) which goes to TBufferTransports.h:124 and calls countConsumedMessageBytes which finally decrements remainingMessageSize_.
However, nothing ever resets remainingMessageSize_, so after it is decremented from 10010241024 down to zero it fails with an END_OF_FILE exception.
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)