[
https://issues.apache.org/jira/browse/HADOOP-12910?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15321417#comment-15321417
]
Jitendra Nath Pandey commented on HADOOP-12910:
-----------------------------------------------
At least we have agreement that in trunk we will have an API that offers most
of the features that community cares about like, chaining, callback etc.
We have a couple of options:
1) CompletableFuture in trunk and then go with either of the following for
branch-2
a) No public API in branch-2. Only Experimental/Unstable with limited
feature set.
b) Introduce a custom API that adds additional features.
Pros: No external dependency, inline with jdk8
Cons: Branch-2 will not have all the features or will need custom API
2) ListenableFuture
Pros: Same API for branch-2 and trunk, provides all the good stuff.
Cons: External dependency
There is an additional tactical advantage with ListenableFuture. The current
implementation AsyncGetFuture already extends AbstractFuture that implements
ListenableFuture. So it seems pretty low hanging. [~szetszwo] correct me.
> 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]