Alexey Serbin has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/20892 )
Change subject: [net] DiagnosticSocket wrapper for sock_diag API ...................................................................... [net] DiagnosticSocket wrapper for sock_diag API This patch introduces DiagnosticSocket wrapper for sock_diag() netlink subsystem [1][2]. The primary intention behind DiagnosticSocket is to fetch information on the RX queue size for a listening IPv4 TCP socket. A follow-up patch will use this new facility to populate a new server-level metric: that's to track connection request backlog for a Kudu server's RPC socket (a.k.a. listened socket backlog, pending connections queue, etc.). Since netlink is a Linux-specific API/subsystem, the DiagnosticSocket API is available only on Linux, correspondingly. This patch includes a few unit tests to provide basic coverage for the newly introduced functionality. [1] https://man7.org/linux/man-pages/man7/sock_diag.7.html [2] https://man7.org/linux/man-pages/man7/netlink.7.html Change-Id: I4a4f37ca4b0df8ca543ec383d89766cbf1b1e526 Reviewed-on: http://gerrit.cloudera.org:8080/20892 Tested-by: Alexey Serbin <[email protected]> Reviewed-by: Yingchun Lai <[email protected]> --- M src/kudu/util/CMakeLists.txt A src/kudu/util/net/diagnostic_socket-test.cc A src/kudu/util/net/diagnostic_socket.cc A src/kudu/util/net/diagnostic_socket.h 4 files changed, 619 insertions(+), 0 deletions(-) Approvals: Alexey Serbin: Verified Yingchun Lai: Looks good to me, approved -- To view, visit http://gerrit.cloudera.org:8080/20892 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: merged Gerrit-Change-Id: I4a4f37ca4b0df8ca543ec383d89766cbf1b1e526 Gerrit-Change-Number: 20892 Gerrit-PatchSet: 4 Gerrit-Owner: Alexey Serbin <[email protected]> Gerrit-Reviewer: Abhishek Chennaka <[email protected]> Gerrit-Reviewer: Alexey Serbin <[email protected]> Gerrit-Reviewer: Attila Bukor <[email protected]> Gerrit-Reviewer: Kudu Jenkins (120) Gerrit-Reviewer: Yifan Zhang <[email protected]> Gerrit-Reviewer: Yingchun Lai <[email protected]>
