Alexey Serbin has submitted this change and it was merged. ( 
http://gerrit.cloudera.org:8080/17369 )

Change subject: [rpc] add transport-specific info for RPC connections
......................................................................

[rpc] add transport-specific info for RPC connections

This patch transport details to the info on RPC connections produced by
the /rpcz endpoint of the kudu-master/kudu-tserver embedded webserver:
  * TCP maximum segment size
  * if applicable, TLS protocol version and cipher suite description
    used to negotiate the connection

I didn't add any tests, but I manually verified that with this patch
kudu-master and kudu-tserver output elements similar to the one below
in the "inbound_connections" section for their '/rpcz' HTTP endpoint:

{
    "remote_ip": "10.17.240.17:49038",
    "state": "OPEN",
    "remote_user_credentials": "{username='joe'}",
    "socket_stats": {
        "rtt": 10875,
        "rttvar": 16500,
        "snd_cwnd": 10,
        "total_retrans": 0,
        "send_queue_bytes": 0,
        "receive_queue_bytes": 0,
        "send_bytes_per_sec": 1331494
    },
    "transport_details": {
        "tcp": {
            "max_segment_size": 1448
        },
        "tls": {
            "protocol": "TLSv1.3",
            "cipher_suite": "TLS_AES_128_GCM_SHA256 TLSv1.3 Kx=any Au=any 
Enc=AESGCM(128) Mac=AEAD"
        }
    }
}

Change-Id: Ib712f98b93dd5ee12c2083467261af02863c18e8
Reviewed-on: http://gerrit.cloudera.org:8080/17369
Reviewed-by: Andrew Wong <[email protected]>
Tested-by: Alexey Serbin <[email protected]>
---
M src/kudu/rpc/connection.cc
M src/kudu/rpc/connection.h
M src/kudu/rpc/rpc_introspection.proto
M src/kudu/security/openssl_util.cc
M src/kudu/security/openssl_util.h
M src/kudu/security/tls_socket.cc
M src/kudu/security/tls_socket.h
7 files changed, 123 insertions(+), 5 deletions(-)

Approvals:
  Andrew Wong: Looks good to me, approved
  Alexey Serbin: Verified

--
To view, visit http://gerrit.cloudera.org:8080/17369
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ib712f98b93dd5ee12c2083467261af02863c18e8
Gerrit-Change-Number: 17369
Gerrit-PatchSet: 3
Gerrit-Owner: Alexey Serbin <[email protected]>
Gerrit-Reviewer: Alexey Serbin <[email protected]>
Gerrit-Reviewer: Andrew Wong <[email protected]>
Gerrit-Reviewer: Bankim Bhavsar <[email protected]>
Gerrit-Reviewer: Grant Henke <[email protected]>
Gerrit-Reviewer: Kudu Jenkins (120)

Reply via email to