Changing the response packet size of remote SQL to 2MB

This commit is contained in:
leslieyuchen
2023-10-31 20:39:28 +00:00
committed by ob-robot
parent 34c3e633b0
commit c91f22632a
5 changed files with 36 additions and 9 deletions

View File

@ -842,7 +842,7 @@ int ObRpcRemoteExecuteP::init()
mtl_id);
result_.set_tenant_id(mtl_id);
if (OB_FAIL(result_.init())) {
if (OB_FAIL(result_.init(DEFAULT_MAX_REMOTE_EXEC_PACKET_LENGTH))) {
LOG_WARN("fail to init result", K(ret));
} else {
arg_.set_deserialize_param(exec_ctx_, phy_plan_);
@ -1038,7 +1038,7 @@ int ObRpcRemoteSyncExecuteP::init()
}
if (OB_SUCC(ret)) {
result_.set_tenant_id(MTL_ID());
if (OB_FAIL(result_.init())) {
if (OB_FAIL(result_.init(DEFAULT_MAX_REMOTE_EXEC_PACKET_LENGTH))) {
LOG_WARN("fail to init result", K(ret));
} else if (OB_FAIL(exec_ctx_.create_physical_plan_ctx())) {
LOG_WARN("create physical plan ctx failed", K(ret));

View File

@ -27,6 +27,7 @@ template <typename T>
class ObRemoteBaseExecuteP : public obrpc::ObRpcProcessor<T>
{
public:
static const int64_t DEFAULT_MAX_REMOTE_EXEC_PACKET_LENGTH = (1 << 22) - (1 << 13); //2MB - 8K
ObRemoteBaseExecuteP(const observer::ObGlobalContext &gctx, bool is_execute_remote_plan = false)
: obrpc::ObRpcProcessor<T>(),
gctx_(gctx),