[
https://issues.apache.org/jira/browse/BOOKKEEPER-421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13476115#comment-13476115
]
Sijie Guo commented on BOOKKEEPER-421:
--------------------------------------
We were thinking of introducing namespace for BookKeeper when working for
BOOKKEEPER-181. if we had large number of topics and each topic changed ledgers
(BOOKKEEPER-191) to consume entries, it would be easy to exhaust all the ledger
ids. if there was namespace in BookKeeper, for each namespace we could have a
sequential znode to generate the ledger id used in the namespace. it would make
the id space more scale.
> 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
> Reporter: Ivan Kelly
> Priority: Critical
> Fix For: 4.2.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