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

Sijie Guo commented on BOOKKEEPER-773:
--------------------------------------

1. use BookieSocketAddress constructor with a string. don't do it yourself.
2. you'd better change bookie id path if bookie id is changed. so the correct 
sequence would be

* read cookie from zookeeper.
* change the bookie id and update it back to zookeeper to use same zk path.
* update cookie into local directories.
* create new cookie with new zk path with new bookie id
* delete the old one.

> Provide admin tool to rename bookie identifier in Cookies
> ---------------------------------------------------------
>
>                 Key: BOOKKEEPER-773
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-773
>             Project: Bookkeeper
>          Issue Type: Sub-task
>          Components: bookkeeper-server
>            Reporter: Rakesh R
>            Assignee: Rakesh R
>             Fix For: 4.3.0
>
>         Attachments: 001-BOOKKEEPER-773-rename-bookieid-in-cookies.patch
>
>
> The idea of this JIRA to implement a mechanism to efficiently rename the 
> bookie identifier present in the Cookies. Cookie information will be present 
> in:
> - ledger & journal directories in each Bookie server
> - cookies znode in ZooKeeper



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to