You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bookkeeper.apache.org by "Rakesh R (JIRA)" <ji...@apache.org> on 2015/02/10 19:00:16 UTC
[jira] [Updated] (BOOKKEEPER-837) UpdateLedgerOp - Replace
AbstractFuture with SettableFuture
[ https://issues.apache.org/jira/browse/BOOKKEEPER-837?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rakesh R updated BOOKKEEPER-837:
--------------------------------
Attachment: 001-BOOKKEEPER-837.patch
> UpdateLedgerOp - Replace AbstractFuture with SettableFuture
> -----------------------------------------------------------
>
> Key: BOOKKEEPER-837
> URL: https://issues.apache.org/jira/browse/BOOKKEEPER-837
> Project: Bookkeeper
> Issue Type: Sub-task
> Components: bookkeeper-auto-recovery, bookkeeper-client, bookkeeper-server
> Reporter: Rakesh R
> Assignee: Rakesh R
> Fix For: 4.3.1
>
> Attachments: 001-BOOKKEEPER-837.patch
>
>
> +Review comment :+ Using AbstractFuture is too tight with guava's internal implementation. Instead it would be good to use a variable for the settable future.
> {code}
> class Read... implements GenericCallback {
> SettableFuture future = ...;
> public void operationComplete(..) {
> future.set(null);
> // future.setException(..)
> }
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)