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

dataroaring pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new 07602fb7d1 [enhancement](config) change transfer_large_data_by_brpc 
default value to true (#22952)
07602fb7d1 is described below

commit 07602fb7d15310c7ae30e6259e8d12e84722ac16
Author: Euporia <[email protected]>
AuthorDate: Tue Aug 15 09:37:39 2023 +0800

    [enhancement](config) change transfer_large_data_by_brpc default value to 
true (#22952)
---
 be/src/common/config.cpp  | 2 +-
 be/src/vec/core/block.cpp | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/be/src/common/config.cpp b/be/src/common/config.cpp
index c370382939..aaa85d959a 100644
--- a/be/src/common/config.cpp
+++ b/be/src/common/config.cpp
@@ -650,7 +650,7 @@ DEFINE_Int64(brpc_socket_max_unwritten_bytes, "-1");
 // Whether to embed the ProtoBuf Request serialized string together with 
Tuple/Block data into
 // Controller Attachment and send it through http brpc when the length of the 
Tuple/Block data
 // is greater than 1.8G. This is to avoid the error of Request length overflow 
(2G).
-DEFINE_mBool(transfer_large_data_by_brpc, "false");
+DEFINE_mBool(transfer_large_data_by_brpc, "true");
 
 // max number of txns for every txn_partition_map in txn manager
 // this is a self protection to avoid too many txns saving in manager
diff --git a/be/src/vec/core/block.cpp b/be/src/vec/core/block.cpp
index dff67ddec7..8ddfe4b410 100644
--- a/be/src/vec/core/block.cpp
+++ b/be/src/vec/core/block.cpp
@@ -857,7 +857,7 @@ Status Block::serialize(int be_exec_version, PBlock* pblock,
         *compressed_bytes = content_uncompressed_size;
     }
     if (!allow_transfer_large_data && *compressed_bytes >= 
std::numeric_limits<int32_t>::max()) {
-        return Status::InternalError("The block is large than 2GB({}), can not 
send by Protobuf.",
+        return Status::InternalError("The block is larger than 2GB({}), can 
not send by Protobuf.",
                                      *compressed_bytes);
     }
     return Status::OK();


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

Reply via email to