[
https://issues.apache.org/jira/browse/HADOOP-18628?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17689952#comment-17689952
]
ASF GitHub Bot commented on HADOOP-18628:
-----------------------------------------
virajjasani commented on PR #5385:
URL: https://github.com/apache/hadoop/pull/5385#issuecomment-1433622305
>
https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-common/Compatibility.html#Audit_Log_Output
I see, thanks for sharing this. Interesting, I am not sure if this means
that audit log must not print client's hostname in addition to it's IP address.
If that is the intention, i.e. if audit log is only meant to print IP
address only regardless of the resolution of InetAddress toString(), we should
have this logic:
```
diff --git
a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java
b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java
index 95b855e8af4..c06cb43d43b 100644
-
> Server connection should log host name before returning VersionMismatch error
> -----------------------------------------------------------------------------
>
> Key: HADOOP-18628
> URL: https://issues.apache.org/jira/browse/HADOOP-18628
> Project: Hadoop Common
> Issue Type: Improvement
> Components: ipc
> Affects Versions: 3.3.4
> Reporter: Viraj Jasani
> Assignee: Viraj Jasani
> Priority: Minor
> Labels: pull-request-available
> Fix For: 3.4.0, 3.3.9
>
>
> In env with dynamically changing IP addresses, debugging issue with the logs
> with only IP address becomes a bit difficult at times.
> {code:java}
> 2023-02-08 23:26:50,112 WARN [Socket Reader #1 for port 8485] ipc.Server -
> Incorrect RPC Header length from {IPV4}:36556 expected length:
> java.nio.HeapByteBuffer[pos=0 lim=4 cap=4] got length:
> java.nio.HeapByteBuffer[pos=0 lim=4 cap=4] {code}
> It would be better to log full hostname for the given IP address rather than
> only IP address.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]