Alexey Serbin has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/22002


Change subject: KUDU-3595: Add interface to set rpc_max_message_size for C++ 
client
......................................................................

KUDU-3595: Add interface to set rpc_max_message_size for C++ client

Kudu client's default capacity to hold RPC payload prove to be less
in cases where payload size goes beyond 50MB (default max size).
This patch adds a method to KuduClientBuilder that enables clients
to change the default max size for RPC message per application needs.
For server, value remains set to default i.e. rpc_max_message_size.
If the default value for server is changed by setting the flag, the
same value gets applied to the subsequent inbound transfer object.

Unit test (TestRpcSidecarWithSizeLimits) tests two scenarios:
1. RPC max message size at client is greater or equal to the size
   of message being received from server - Completes successfully.
2. RPC max message size at client is less than the size of message
   being received from server - Op fails with shutting down of client
   connection and appropriate error message.

Change-Id: Ib8feb5ba92ea604442a643e3286944564e655fa6
Reviewed-on: http://gerrit.cloudera.org:8080/21622
Reviewed-by: Alexey Serbin <[email protected]>
Tested-by: Alexey Serbin <[email protected]>
(cherry picked from commit 66794ac0970a6313e7a081720424228fdf8a5617)
---
M src/kudu/client/client.cc
M src/kudu/client/client.h
M src/kudu/client/client_builder-internal.cc
M src/kudu/client/client_builder-internal.h
M src/kudu/rpc/connection.cc
M src/kudu/rpc/messenger.cc
M src/kudu/rpc/messenger.h
M src/kudu/rpc/rpc-test-base.h
M src/kudu/rpc/rpc-test.cc
M src/kudu/rpc/transfer.cc
M src/kudu/rpc/transfer.h
M src/kudu/tools/kudu-tool-test.cc
12 files changed, 143 insertions(+), 8 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/02/22002/1
--
To view, visit http://gerrit.cloudera.org:8080/22002
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: branch-1.18.x
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib8feb5ba92ea604442a643e3286944564e655fa6
Gerrit-Change-Number: 22002
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <[email protected]>
Gerrit-Reviewer: Ashwani Raina <[email protected]>

Reply via email to