mrhhsg opened a new pull request, #63258:
URL: https://github.com/apache/doris/pull/63258
### What problem does this PR solve?
Issue Number: None
Related PR: None
Problem Summary: Broadcast exchange sends can borrow a shared `PBlock`
through `set_allocated_block`. When such a request takes the HTTP attachment
path, the helper must remove `column_values` from the protobuf request before
serialization, but it must not permanently consume data owned by the shared
broadcast block. This PR adds an explicit restore mode for borrowed block
storage while keeping the default owned-request path unchanged.
It also documents intentional protobuf `set_allocated_*` ownership patterns
in exchange sink buffer and rowset meta code, and adds focused unit coverage
for the attachment helper's owned vs borrowed behavior.
### Release note
None
### Check List (For Author)
- Test: Unit Test
- `./run-be-ut.sh --run --filter=ProtoUtilTest.*`
- Behavior changed: Yes (broadcast exchange HTTP sends preserve borrowed
`column_values` for later channel sends)
- Does this need documentation: No
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]