junegunn opened a new pull request, #8172:
URL: https://github.com/apache/hbase/pull/8172

   The RpcServer constructor calls userProvider.getCurrentUserName() 
(HBASE-28321) which triggers UserGroupInformation.getCurrentUser(). If the 
server has not logged in yet, UGI bootstraps from the ticket cache and spawns a 
TGT renewer for whichever principal happens to be there, regardless of the 
principal the server is configured to use.
   
   Resolve the hostname up front via DNS.getHostname(...) and run the ZK client 
and server logins before createRpcServices(), so that UGI is already bound to 
the keytab principal by the time the RpcServer constructor runs.
   
   HRegionServer.getUseThisHostnameInstead() previously fell back to 
rpcServices.getSocketAddress().getHostName() when the reverse-DNS disable flag 
was set; that branch now uses DNS.getHostname directly so it no longer depends 
on rpcServices being constructed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to