[ 
https://issues.apache.org/jira/browse/HADOOP-12910?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15301326#comment-15301326
 ] 

Andrew Wang commented on HADOOP-12910:
--------------------------------------

Per request, reposting my comment from HDFS-9924 here:

{quote}
I'm still not convinced enough to change my -1 on Future in 2.8.

Even if what's currently committed is marked Unstable, I don't want to rush 
ahead with an API we know is insufficient for async-style programming. Earlier 
in this JIRA's comments, others were asking about ListenableFuture for the same 
reasons. It's not fair to push the burden of supporting multiple APIs onto our 
downstreams, when we have a few possible solutions close at-hand:

* Use Deferred, which HBase and Kudu adopted due to the lack of 
CompletableFuture in JDK7. ListenableFuture might be good too.
* Target this for 3.0 and use CompletableFuture. We're actively working on 3.0, 
and the first 3.0.0 alpha is likely coming out around the same time as 2.8.0.
{quote}

> Add new FileSystem API to support asynchronous method calls
> -----------------------------------------------------------
>
>                 Key: HADOOP-12910
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12910
>             Project: Hadoop Common
>          Issue Type: New Feature
>          Components: fs
>            Reporter: Tsz Wo Nicholas Sze
>            Assignee: Xiaobing Zhou
>         Attachments: HADOOP-12910-HDFS-9924.000.patch, 
> HADOOP-12910-HDFS-9924.001.patch, HADOOP-12910-HDFS-9924.002.patch
>
>
> Add a new API, namely FutureFileSystem (or AsynchronousFileSystem, if it is a 
> better name).  All the APIs in FutureFileSystem are the same as FileSystem 
> except that the return type is wrapped by Future, e.g.
> {code}
>   //FileSystem
>   public boolean rename(Path src, Path dst) throws IOException;
>   //FutureFileSystem
>   public Future<Boolean> rename(Path src, Path dst) throws IOException;
> {code}
> Note that FutureFileSystem does not extend FileSystem.



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

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

Reply via email to