This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 61ab06990ec [fix](tvf) fix tvf return error since thrift message too 
large to reach limit (#61788)
61ab06990ec is described below

commit 61ab06990ec08c99a6cc60af77858d8e892246d8
Author: Guangming Lu <[email protected]>
AuthorDate: Fri Apr 10 14:23:00 2026 +0800

    [fix](tvf) fix tvf return error since thrift message too large to reach 
limit (#61788)
    
    ### What problem does this PR solve?
    
    Issue Number: close #61787
    
    Related PR: #61787
    
    Problem Summary:
    Fix tvf return error since thrift message too large to reach limit
    
    ### Release note
    
    None
    
    ### Check List (For Author)
    
    - Test <!-- At least one of them must be included. -->
        - [x] Regression test
        - [ ] Unit Test
        - [ ] Manual test (add detailed scripts or steps below)
        - [ ] No need to test or manual test. Explain why:
    - [ ] This is a refactor/code format and no logic has been changed.
            - [ ] Previous test can cover this change.
            - [ ] No code files have been changed.
            - [ ] Other reason <!-- Add your reason?  -->
    
    - Behavior changed:
        - [x] No.
        - [ ] Yes. <!-- Explain the behavior change -->
    
    - Does this need documentation?
        - [x] No.
    - [ ] Yes. <!-- Add document PR link here. eg:
    https://github.com/apache/doris-website/pull/1214 -->
    
    ### Check List (For Reviewer who merge this PR)
    
    - [x] Confirm the release note
    - [ ] Confirm test cases
    - [ ] Confirm document
    - [ ] Add branch pick label <!-- Add branch pick label that this PR
    should merge into -->
    
    ---------
    
    Co-authored-by: Vallish Pai <[email protected]>
---
 be/src/common/config.cpp    | 2 +-
 be/src/common/config.h      | 2 +-
 be/src/util/thrift_client.h | 3 +++
 3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/be/src/common/config.cpp b/be/src/common/config.cpp
index 1d7def9c66f..9b3a2edbf59 100644
--- a/be/src/common/config.cpp
+++ b/be/src/common/config.cpp
@@ -336,7 +336,7 @@ DEFINE_mInt32(thrift_connect_timeout_seconds, "3");
 DEFINE_mInt64(thrift_client_retry_interval_ms, "1000");
 // max message size of thrift request
 // default: 100 * 1024 * 1024
-DEFINE_mInt64(thrift_max_message_size, "104857600");
+DEFINE_mInt32(thrift_max_message_size, "104857600");
 // max bytes number for single scan range, used in segmentv2
 DEFINE_mInt32(doris_scan_range_max_mb, "1024");
 // single read execute fragment row number
diff --git a/be/src/common/config.h b/be/src/common/config.h
index 417212ed724..b5e18014e7d 100644
--- a/be/src/common/config.h
+++ b/be/src/common/config.h
@@ -395,7 +395,7 @@ DECLARE_mInt32(thrift_connect_timeout_seconds);
 DECLARE_mInt64(thrift_client_retry_interval_ms);
 // max message size of thrift request
 // default: 100 * 1024 * 1024
-DECLARE_mInt64(thrift_max_message_size);
+DECLARE_mInt32(thrift_max_message_size);
 // max bytes number for single scan range, used in segmentv2
 DECLARE_mInt32(doris_scan_range_max_mb);
 // single read execute fragment row number
diff --git a/be/src/util/thrift_client.h b/be/src/util/thrift_client.h
index ccce45f6289..faed22e2a9e 100644
--- a/be/src/util/thrift_client.h
+++ b/be/src/util/thrift_client.h
@@ -123,6 +123,7 @@ template <class InterfaceType>
 ThriftClient<InterfaceType>::ThriftClient(const std::string& ipaddress, int 
port)
         : ThriftClientImpl(ipaddress, port) {
     _transport.reset(new 
apache::thrift::transport::TBufferedTransport(_socket));
+    
_transport->getConfiguration()->setMaxMessageSize(config::thrift_max_message_size);
     _protocol.reset(new apache::thrift::protocol::TBinaryProtocol(_transport));
     _iface.reset(new InterfaceType(_protocol));
 }
@@ -134,10 +135,12 @@ ThriftClient<InterfaceType>::ThriftClient(const 
std::string& ipaddress, int port
     switch (server_type) {
     case ThriftServer::NON_BLOCKING:
         _transport.reset(new 
apache::thrift::transport::TFramedTransport(_socket));
+        
_transport->getConfiguration()->setMaxMessageSize(config::thrift_max_message_size);
         break;
     case ThriftServer::THREADED:
     case ThriftServer::THREAD_POOL:
         _transport.reset(new 
apache::thrift::transport::TBufferedTransport(_socket));
+        
_transport->getConfiguration()->setMaxMessageSize(config::thrift_max_message_size);
         break;
     default:
         std::stringstream error_msg;


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to