[
https://issues.apache.org/jira/browse/HDFS-10526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Bob Hansen updated HDFS-10526:
------------------------------
Attachment: HDFS-10526.HDFS-8707.000.patch
Adds a timer in parallel with RpcConnection async_connect calls.
Needed to carefully manage state because we'll now get two calls to
ConnectionComplete - one from TPC and one from the timeout. The first to
trigger should always cancel the second, but it will still call in with a "Hey!
I'm cancelled" error.
We mitigate that by either changing the current_endpoint_ or connection_ member
variable when ConnectionComplete is called. On entry, we grab the lock and
check that both member variables are what we expect.
> libhdfs++: Add connect timeouts to async_connect calls
> ------------------------------------------------------
>
> Key: HDFS-10526
> URL: https://issues.apache.org/jira/browse/HDFS-10526
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: hdfs-client
> Reporter: Bob Hansen
> Assignee: Bob Hansen
> Attachments: HDFS-10526.HDFS-8707.000.patch
>
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]