Changing the response packet size of remote SQL to 2MB
This commit is contained in:
		| @ -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)); | ||||
|  | ||||
| @ -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), | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 leslieyuchen
					leslieyuchen