Dan Burkert has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/8279 )
Change subject: rpc: add experimental rpc_reuseport flag ...................................................................... rpc: add experimental rpc_reuseport flag This option sets the SO_REUSEPORT socket option on a server's bound socket. This socket option is supported on all platforms which Kudu supports, except RHEL 6.4 and below. The motivation is to use the option in the minicluster so that master ports can be reserved by the mini cluster control processes and reused by the master processes. When rpc_reuseport is set on RHEL 6.4 the server fails to startup with the following message (which is expected): $ cat /etc/redhat-release CentOS release 6.4 (Final) $ ./kudu-master --fs-wal-dir=/tmp/kudu-master --logtostderr --unlock-experimental-flags --rpc-reuseport=true ... F0501 14:56:30.672461 3271 master_main.cc:74] Check failed: _s.ok() Bad status: Network error: failed to set SO_REUSEPORT: Protocol not available (error 92) Change-Id: I5d8ce9faa646fa2be554f5cfdf8b6ed0c48b496e Reviewed-on: http://gerrit.cloudera.org:8080/8279 Reviewed-by: Alexey Serbin <aser...@cloudera.com> Tested-by: Kudu Jenkins --- M src/kudu/rpc/messenger.cc M src/kudu/rpc/messenger.h M src/kudu/rpc/rpc-test.cc M src/kudu/server/rpc_server.cc M src/kudu/server/rpc_server.h M src/kudu/server/server_base.cc M src/kudu/util/net/socket-test.cc M src/kudu/util/net/socket.cc M src/kudu/util/net/socket.h 9 files changed, 88 insertions(+), 70 deletions(-) Approvals: Alexey Serbin: Looks good to me, approved Kudu Jenkins: Verified -- To view, visit http://gerrit.cloudera.org:8080/8279 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: merged Gerrit-Change-Id: I5d8ce9faa646fa2be554f5cfdf8b6ed0c48b496e Gerrit-Change-Number: 8279 Gerrit-PatchSet: 7 Gerrit-Owner: Dan Burkert <danburk...@apache.org> Gerrit-Reviewer: Adar Dembo <a...@cloudera.com> Gerrit-Reviewer: Alexey Serbin <aser...@cloudera.com> Gerrit-Reviewer: Dan Burkert <danburk...@apache.org> Gerrit-Reviewer: Kudu Jenkins Gerrit-Reviewer: Tidy Bot