You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bookkeeper.apache.org by "Jiannan Wang (JIRA)" <ji...@apache.org> on 2013/01/20 08:00:17 UTC
[jira] [Updated] (BOOKKEEPER-421) ledger ids are long, but they are
stored in zk as 10 characters max, which fundamentally limits them at 9
billion
[ https://issues.apache.org/jira/browse/BOOKKEEPER-421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jiannan Wang updated BOOKKEEPER-421:
------------------------------------
Component/s: hedwig-server
bookkeeper-server
bookkeeper-client
Assignee: Jiannan Wang
A fix on this issue might involves two aspects to be considered:
# How to generate a 64 bits global unique id?
# How to maintain the metadata for 64 bits ledger id in zookeeper? (Absolutely, current 2-4-4 split for ledger id is not enough, see HierarchicalLedgerManager)
In task breakdown:
# Move ledger id generation out of LedgerManager
# Implement 64 bits ledger id generation
# Implement 64 bits LedgerManager that based on zookeeper for metadata storage
> ledger ids are long, but they are stored in zk as 10 characters max, which fundamentally limits them at 9 billion
> -----------------------------------------------------------------------------------------------------------------
>
> Key: BOOKKEEPER-421
> URL: https://issues.apache.org/jira/browse/BOOKKEEPER-421
> Project: Bookkeeper
> Issue Type: Bug
> Components: bookkeeper-client, bookkeeper-server, hedwig-server
> Reporter: Ivan Kelly
> Assignee: Jiannan Wang
> Priority: Critical
> Fix For: 4.3.0
>
>
> {code}
> public static String getZKStringId(long id) {
> return String.format("%010d", id);
> }
> {code}
> Simple to fix, but we need it be backward compatible, which also shouldn't be a problem.
--
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