[
https://issues.apache.org/jira/browse/HDFS-13875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16807145#comment-16807145
]
Karthik Palanisamy commented on HDFS-13875:
-------------------------------------------
[~ajayydv]
I log very generic message when DataInputStream is empty. Would you like to
change or handle any?
{code}
LOG.debug("Failed to read SASL message from client at " +
peer.getRemoteAddressString() + ". Likely client has closed the socket", e);
{code}
Currently, SaslExceptions are throwable in DataXceiver and these are logged as
error in the log.
My only concern is log spam.
> EOFException log spam in Datanode
> ---------------------------------
>
> Key: HDFS-13875
> URL: https://issues.apache.org/jira/browse/HDFS-13875
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: hdfs
> Affects Versions: 3.0.0
> Reporter: Karthik Palanisamy
> Assignee: Karthik Palanisamy
> Priority: Minor
> Attachments: HDFS-13875.001.patch, HDFS-13875.002.patch
>
>
> Ambari checks datanode liveness by simply connecting to data transfer port.
> But this connection will be closed after a successful TCP handshake without
> any data transfer. Due to which datanode encountered EOFExcetion when reading
> an encrypted message from the closed socket.
> This issue addressed in HDFS-9572. But not handled for encrypted data
> transfer(SASL message).
> {code:java}
> java.io.EOFException
> at java.io.DataInputStream.readInt(DataInputStream.java:392)
> at
> org.apache.hadoop.hdfs.protocol.datatransfer.sasl.SaslDataTransferServer.doSaslHandshake(SaslDataTransferServer.java:361)
> at
> org.apache.hadoop.hdfs.protocol.datatransfer.sasl.SaslDataTransferServer.getEncryptedStreams(SaslDataTransferServer.java:180)
> at
> org.apache.hadoop.hdfs.protocol.datatransfer.sasl.SaslDataTransferServer.receive(SaslDataTransferServer.java:112)
> at
> org.apache.hadoop.hdfs.server.datanode.DataXceiver.run(DataXceiver.java:194)
> at java.lang.Thread.run(Thread.java:745)
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]