[ https://issues.apache.org/jira/browse/HDDS-12809?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated HDDS-12809: ---------------------------------- Labels: pull-request-available (was: ) > Avoid reverse DNS lookup in check ACL > ------------------------------------- > > Key: HDDS-12809 > URL: https://issues.apache.org/jira/browse/HDDS-12809 > Project: Apache Ozone > Issue Type: Improvement > Reporter: Janus Chow > Priority: Major > Labels: pull-request-available > > We noticed a 14ms delay in OM's check ACL operation. > The cause is the reverse DNS lookup for the client's hostName, it's operated > by local server's DNS lookup method, when the hostname is not found, there > will be a 14ms delay, and during the negative cache, the delay is gone, but > after the negative cache expires, the 14ms delay appears again. > IMO, the server side can not always have the client's hostname, and it's ok > to return the IP directly in checkACL, and since we do have the > "InetAddress", we can invoke getHostName() when needed, and we don't need to > invoke getHostName() on every client call. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@ozone.apache.org For additional commands, e-mail: issues-h...@ozone.apache.org