[
https://issues.apache.org/jira/browse/BOOKKEEPER-629?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13691155#comment-13691155
]
Rakesh R commented on BOOKKEEPER-629:
-------------------------------------
Thanks [~hustlmsp]
bq.create a default version of addrToString which uses ip. and just change the
places where you need to output the address using hostname as the issue
described.
Could you please explain how to use this default version. Can you point me to
any usage in our component.
bq.when you change cookie format (even cookie znode name), please consider
backward compatibility. otherwise, please keep it using ip before you had a
graceful solution for this part.
How about handling 'KeeperException.NoNodeException' while
Cookie.readFromZooKeeper() and also check the existence of bookieIpAddress. If
exists, after successful verification, keep the new converted cookie data in
zookeeper and then delete the old one from zookeeper.
Also, I feel it would be good to provide upgradation of the existing
ledger/autorecovery metadata info by using hostname instead of IP. IMHO will
help users to do IP change more efficiently. Any thoughts?
> Support hostname based ledger metadata to help users to change IP with
> exitsting installation
> ---------------------------------------------------------------------------------------------
>
> Key: BOOKKEEPER-629
> URL: https://issues.apache.org/jira/browse/BOOKKEEPER-629
> Project: Bookkeeper
> Issue Type: Improvement
> Components: bookkeeper-client, bookkeeper-server
> Affects Versions: 4.2.1, 4.3.0
> Reporter: Vinay
> Assignee: Rakesh R
> Fix For: 4.3.0
>
> Attachments: 1-BOOKKEEPER-629.patch
>
>
> Register the bookie with *hostname:port* and also store the bookie addresses
> as *hostname:port* in ledger metadata files instead of *ip:port*
> This will help users to change the machine IP if they want without loosing
> their data.
> Supporting hostname based installation/functionality is one of the important
> requirement of users.
> Any thoughts?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira