[
https://issues.apache.org/jira/browse/KAFKA-20996?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Luke Chen updated KAFKA-20996:
------------------------------
Description: We use
`InetAddress.getHostName`([javadoc|https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/net/InetAddress.html#getHostName()])
in some places in kafka, but we never consider it might take long time to
respond because it performs a reverse hostname lookup. When this happens, it'll
block the network thread and cause unexpected timeout and hard to troubleshoot.
We should improve this behavior. (was: We use `InetAddress.getHostName` in
some places in kafka, but we never consider it might take long time to respond
because it performs a reverse hostname lookup. When this happens, it'll block
the network thread and cause unexpected timeout and hard to troubleshoot. We
should improve this behavior.)
> `InetAddress.getHostName` could take long to impact network thread
> ------------------------------------------------------------------
>
> Key: KAFKA-20996
> URL: https://issues.apache.org/jira/browse/KAFKA-20996
> Project: Kafka
> Issue Type: Improvement
> Reporter: Luke Chen
> Priority: Major
>
> We use
> `InetAddress.getHostName`([javadoc|https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/net/InetAddress.html#getHostName()])
> in some places in kafka, but we never consider it might take long time to
> respond because it performs a reverse hostname lookup. When this happens,
> it'll block the network thread and cause unexpected timeout and hard to
> troubleshoot. We should improve this behavior.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)