curator-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CURATOR-215) Support async multi/transaction APIs
Date Tue, 12 May 2015 17:01:59 GMT

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

ASF GitHub Bot commented on CURATOR-215:
----------------------------------------

Github user madrob commented on a diff in the pull request:

    https://github.com/apache/curator/pull/77#discussion_r30155605
  
    --- Diff: curator-framework/src/main/java/org/apache/curator/framework/imps/CuratorTransactionImpl.java
---
    @@ -188,19 +169,45 @@ private CuratorTransactionResult makeCuratorResult(OpResult opResult,
CuratorMul
     
                 case ZooDefs.OpCode.create:
                 {
    -                OpResult.CreateResult       createResult = (OpResult.CreateResult)opResult;
    +                OpResult.CreateResult createResult = (OpResult.CreateResult)opResult;
                     resultPath = client.unfixForNamespace(createResult.getPath());
                     break;
                 }
     
                 case ZooDefs.OpCode.setData:
                 {
    -                OpResult.SetDataResult      setDataResult = (OpResult.SetDataResult)opResult;
    +                OpResult.SetDataResult setDataResult = (OpResult.SetDataResult)opResult;
                     resultStat = setDataResult.getStat();
                     break;
                 }
             }
     
    -        return new CuratorTransactionResult(metadata.type, metadata.forPath, resultPath,
resultStat);
    +        return new CuratorTransactionResult(metadata.getType(), metadata.getForPath(),
resultPath, resultStat);
    +    }
    +
    +    private List<OpResult> doOperation(AtomicBoolean firstTime) throws Exception
    +    {
    +        boolean localFirstTime = firstTime.getAndSet(false);
    +        if ( !localFirstTime )
    +        {
    +            // TODO
    --- End diff --
    
    Do what?


> Support async multi/transaction APIs
> ------------------------------------
>
>                 Key: CURATOR-215
>                 URL: https://issues.apache.org/jira/browse/CURATOR-215
>             Project: Apache Curator
>          Issue Type: Sub-task
>          Components: Client, Framework
>            Reporter: Jordan Zimmerman
>            Assignee: Jordan Zimmerman
>             Fix For: 3.0.0
>
>
> ZooKeeper 3.5 adds async multi/transaction APIs. Add support in Curator.



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

Mime
View raw message