Jim Halfpenny created NIFI-16618:
------------------------------------
Summary: Avoid reverse DNS lookups in cluster protocol listener
Key: NIFI-16618
URL: https://issues.apache.org/jira/browse/NIFI-16618
Project: Apache NiFi
Issue Type: Bug
Components: Core Framework
Affects Versions: 2.12.0
Reporter: Jim Halfpenny
{{SocketProtocolListener.dispatchRequest()}} calls
{{socket.getInetAddress().getHostName()}} for every inbound cluster protocol
connection before reading the request. For an accepted socket this performs a
reverse DNS (PTR) lookup. The result is only used in log messages.
When PTR lookups are slow, every protocol message waits for the resolver
timeout before processing starts. This includes heartbeats to the Cluster
Coordinator. The JVM caches negative lookups for 10 seconds by default, so the
delay recurs after this period. If heartbeat processing falls behind for long
enough, nodes are disconnected for missed heartbeats.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)