[ 
https://issues.apache.org/jira/browse/HDFS-14451?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Shweta updated HDFS-14451:
--------------------------
    Attachment: HDFS-14451.002.patch

> Incorrect header or version mismatch log message
> ------------------------------------------------
>
>                 Key: HDFS-14451
>                 URL: https://issues.apache.org/jira/browse/HDFS-14451
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: ipc
>    Affects Versions: 3.2.0
>            Reporter: David Mollitor
>            Assignee: Shweta
>            Priority: Minor
>              Labels: noob
>         Attachments: HDFS-14451.001.patch, HDFS-14451.002.patch
>
>
> {code:java|title=Server.java}
>           if (!RpcConstants.HEADER.equals(dataLengthBuffer)
>               || version != CURRENT_VERSION) {
>             //Warning is ok since this is not supposed to happen.
>             LOG.warn("Incorrect header or version mismatch from " + 
>                      hostAddress + ":" + remotePort +
>                      " got version " + version + 
>                      " expected version " + CURRENT_VERSION);
>             setupBadVersionResponse(version);
>             return -1;
> {code}
> This message should include the value of {{RpcConstants.HEADER}} and 
> {{dataLengthBuffer}} in addition to just the version information or else that 
> data is lost.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to