[
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.001.patch
New patch:
-Added tests into the remote_block_reader_test because most of the
infrastructure was already there.
-Pushed all of the cancellation checking logic into Pipeline. The pipeline can
optionally take a CancelHandle. It will also propagate out Cancel statuses
returned from continuations.
-CancelTracker uses a std::atomic_bool instead of a mutex+bool
-FileHandle checks CancelHandle and bails out of any new operations if the
handle has been canceled.
> 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
>
>
> 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)