Skip to content

HDDS-12809. Avoid reverse DNS lookup in check ACL #8258

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

symious
Copy link
Contributor

@symious symious commented Apr 10, 2025

What changes were proposed in this pull request?

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.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-12809

(Please replace this section with the link to the Apache JIRA)

How was this patch tested?

Existing tests.

@jojochuang
Copy link
Contributor

Would this break Ranger ACL check if we pass over IP rather than host name? cc @smengcl ?

@jojochuang
Copy link
Contributor

Is #740 related?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants