bsglz commented on pull request #1909:
URL: https://github.com/apache/hbase/pull/1909#issuecomment-660782480
> Is the operation expensive?
In my local env, the code below cost about 1μs~200μs, avg<5μs, much lesser
than 1ms.
```
try {
currentHost = DNS.getDefaultHost("default", "default");
} catch (Exception e) {
// Just ignore, it's ok, avoid too many log info
}
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]