Abhishek Chennaka has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/17607 )

Change subject: [metrics] KUDU-3269: Add UUID and hostname of the server into 
the metrics output
......................................................................


Patch Set 3:

(2 comments)

http://gerrit.cloudera.org:8080/#/c/17607/3/src/kudu/server/server_base.cc
File src/kudu/server/server_base.cc:

http://gerrit.cloudera.org:8080/#/c/17607/3/src/kudu/server/server_base.cc@855
PS3, Line 855: GetFQDN
> Is it possible to reuse the result of the prior call to GetFQDN() instead o
The implementation of GetFQDN() involves calling GetHostname() to update the 
hostname and then re-updating the hostname with FQDN if GetAddrInfo() succeeds, 
so even if GetFQDN() fails and GetHostname() succeeds, the hostname is updated. 
So calling GetHostname() again might be redundant


http://gerrit.cloudera.org:8080/#/c/17607/3/src/kudu/tserver/tablet_server-test.cc
File src/kudu/tserver/tablet_server-test.cc:

http://gerrit.cloudera.org:8080/#/c/17607/3/src/kudu/tserver/tablet_server-test.cc@3828
PS3, Line 3828: GetHostname
> Is this still working as expected once switched to FQDN?
This should have been GetFQDN(). Will update it.
That was working because in mac we do not update the hostname with FQDN but 
just with local hostname if there is no domain name as implemented in GetFQDN().



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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I7d6d1e96f8067a7b1593da4f9d0e1931d3001016
Gerrit-Change-Number: 17607
Gerrit-PatchSet: 3
Gerrit-Owner: Abhishek Chennaka <[email protected]>
Gerrit-Reviewer: Abhishek Chennaka <[email protected]>
Gerrit-Reviewer: Alexey Serbin <[email protected]>
Gerrit-Reviewer: Bankim Bhavsar <[email protected]>
Gerrit-Reviewer: Grant Henke <[email protected]>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)
Gerrit-Comment-Date: Thu, 24 Jun 2021 02:59:52 +0000
Gerrit-HasComments: Yes

Reply via email to