[ https://issues.apache.org/jira/browse/HDFS-9643?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James Clampffer updated HDFS-9643: ---------------------------------- Attachment: HDFS-9643.HDFS-8707.002.patch New Patch: -FileHandle now holds weak_ptrs to BlockReaders, when CancelOperations is called it will find all living BlockReaders and call CancelOperation on them. This eventually results in cancel being called on the underlying asio::tcp::socket inside of the reader's DataNodeConnection. This should help in the case [~bobhansen] mentioned when the pipeline is stalled waiting to time out during a network partition or something similar. > libhdfs++: Support async cancellation of read operations > -------------------------------------------------------- > > Key: HDFS-9643 > URL: https://issues.apache.org/jira/browse/HDFS-9643 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: hdfs-client > Reporter: James Clampffer > Assignee: James Clampffer > Attachments: HDFS-9643.HDFS-8707.000.patch, > HDFS-9643.HDFS-8707.001.patch, HDFS-9643.HDFS-8707.002.patch > > > It should be possible for any thread to cancel operations in progress on a > FileHandle. Any ephemeral objects created by the FileHandle should free > resources as quickly as possible. -- This message was sent by Atlassian JIRA (v6.3.4#6332)