[
https://issues.apache.org/jira/browse/BOOKKEEPER-918?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15230851#comment-15230851
]
Venkateswararao Jujjuri (JV) commented on BOOKKEEPER-918:
---------------------------------------------------------
It is very well possible to do at upper level, and the good thing is it is same
level of complexity/code even at Bk level. Hence my thought process is - why
not have it at BK level so everyone else can make use of it. Do you see any
issues of having it at BK client level? Of course we will create a new ledger
handle interface, keeping backward compatibility.
> Create Ledger NameSpace
> -----------------------
>
> Key: BOOKKEEPER-918
> URL: https://issues.apache.org/jira/browse/BOOKKEEPER-918
> Project: Bookkeeper
> Issue Type: New Feature
> Components: bookkeeper-client, bookkeeper-server
> Reporter: Venkateswararao Jujjuri (JV)
> Assignee: Venkateswararao Jujjuri (JV)
>
> Bookkeeper doesn't really have a real NameSpace, it operates by ledgerId. I
> have opened and worked on
> https://issues.apache.org/jira/browse/BOOKKEEPER-873 which allows
> applications to pass-in LedgerId instead of BK client API picking one for
> them. But that really doesn't offer much flexibility.
> Since ledgerId is a long we can't have 128-bit UUIDs as ledgerIDs and this
> severely restricts the range if we are generating ledgerIDs through a random
> generator (https://issues.apache.org/jira/browse/BOOKKEEPER-864)
> Best solution for this is to offer a real name space, and I believe it is
> relatively simple than offering 128-bit ledgerIDs.
> Analogous to regular filesystem, we treat our ledgerId as inode-number.
> Create a new name space in ZK with the user provided pretty-name and provide
> simple mapping at ZK between name-to-ledgerId. This mapping is static, and
> never changes once created. i.e name-x always points ledgerId-z. Given this
> most part of bookie code doesn't need to be aware of this mapping, and
> changes mostly will be confined client code and in create/delete/list paths.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)