You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Jason Lowe (JIRA)" <ji...@apache.org> on 2015/10/21 16:46:27 UTC

[jira] [Updated] (MAPREDUCE-6518) Set SO_KEEPALIVE on shuffle connections

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

Jason Lowe updated MAPREDUCE-6518:
----------------------------------
    Summary: Set SO_KEEPALIVE on shuffle connections  (was: Set SO_KEEPALIVE on NM servers)

Thanks for the patch, Chang!

The main change is fine, but the test could use some cleanup.  There's a lot of copy-n-paste there that is unnecessary.  Since all we're doing is connecting to the socket, there's no need to override any methods except channelOpen and verifyRequest.  The rest will never be invoked.  And since we can access the channel in verifyRequest just as easily as we can in channelOpen, there's really no need to override channelOpen separately.  We can simply check the channel state in the verifyRequest override.  And since we're overriding just one method with a simple implementation, we can just do it with an anonymous class rather than the full boilerplate of a MyShuffle class.

MockShuffleHandler2 should be private static.

The 'input' variable in testSocketKeepAlive is unused.

We should disconnect the client and close the shuffle handler instance at the end of the test.

> Set SO_KEEPALIVE on shuffle connections
> ---------------------------------------
>
>                 Key: MAPREDUCE-6518
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-6518
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: mrv2, nodemanager
>    Affects Versions: 2.7.1
>            Reporter: Nathan Roberts
>            Assignee: Chang Li
>         Attachments: YARN-4052.2.patch, YARN-4052.3.patch, YARN-4052.patch
>
>
> Shuffle handler does not set SO_KEEPALIVE so we've seen cases where FDs/sockets get stuck in ESTABLISHED state indefinitely because the server did not see the client leave (network cut or otherwise). 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)