Yukang-Lian opened a new pull request, #67291:
URL: https://github.com/apache/doris/pull/67291
### What problem does this PR solve?
Issue Number: close #xxx
Related PR: None
Problem Summary:
Custom FE server starters may need a blocking server transport while
retaining the framed wire protocol used by threaded-selector clients.
Previously, ThriftServer built its thread-pool server inline and only supported
the unframed transport, so extensions had to duplicate Doris worker-pool
construction to preserve the framed protocol.
This change adds a shared thread-pool server factory with an explicit
framed-transport option. The existing unframed production path now uses the
same factory. A focused end-to-end test verifies both framed and unframed RPC
round trips.
### Release note
Support constructing framed thread-pool Thrift servers for custom FE server
starters.
### Check List (For Author)
- Test
- [x] Unit Test
- [ ] Regression test
- [ ] Manual test
- [ ] No need to test or manual test
- Behavior changed:
- [ ] No.
- [x] Yes. Custom server starters can opt into framed transport on a
blocking Thrift server.
- Does this need documentation?
- [x] No.
- [ ] Yes.
Validation: ./run-fe-ut.sh --run org.apache.doris.common.ThriftServerTest (2
tests passed).
--
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]