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 2014/09/23 11:28:41 UTC

[jira] [Commented] (BOOKKEEPER-787) Modify Cookie by removing 'znodeVersion' state/field

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

Rakesh R commented on BOOKKEEPER-787:
-------------------------------------

Thanks Ivan for the new idea. Let me try to implement this one. 

Between I've one doubt. If we pass 'Version' for writing, internally I need to cast it to 'ZkVersion' for setting the {{stat#getVersion()}}. Instead I'm thinking to pass 'ZkVersion' like below.
Also, there is one more case. When writing freshly with {{Version.NEW}}, how should it returns the new version value to the user. I should have either returning the new version to the user or have a callback to the user.

Since he knows he is writing/read/delete to ZK I feel this would be fine ?
{code}
DEFAULT_VERSION = Integer.MAX;
ZkVersion version = new ZkVersion(DEFAULT_VERSION);
cookie.writeToZooKeeper(zk, conf, ZkVersion);
{code}

> Modify Cookie by removing 'znodeVersion' state/field
> ----------------------------------------------------
>
>                 Key: BOOKKEEPER-787
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-787
>             Project: Bookkeeper
>          Issue Type: Sub-task
>          Components: bookkeeper-server
>            Reporter: Rakesh R
>            Assignee: Rakesh R
>             Fix For: 4.3.0
>
>
> The idea is to make Versioned<Cookie> instead of maintaining 'znodeVersion' by Cookie.
> Please see the [discussion thread|https://issues.apache.org/jira/browse/BOOKKEEPER-773?focusedCommentId=14143263&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14143263] for more details.



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