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

Rakesh R commented on BOOKKEEPER-634:
-------------------------------------

bq.The way that you get whole ledgers into a set and then issues all reads at 
the same time is definitely terrible. You should use the LedgerIterator and do 
it iterator by iterator, and you have to bind the outstanding metadata reads 
and updates to not overwhelm metadata store (zookeeper).
The reason for getting all the ledgers to a set and processing is to print the 
execution progress

{code}
BookKeeperAdmin.java
if (TimeUnit.SECONDS.convert(System.nanoTime() - lastReport, 
TimeUnit.NANOSECONDS) > 5) {
                    System.out.println("Total ledgers " + ledgers.size() + ", 
renamed " + completedLedgers.size()
                            + " pending " + (ledgers.size() - 
completedLedgers.size()));
                    lastReport = System.nanoTime();
                }
{code}

Latest patch is attached to BOOKKEEPER-773.

> Provide admin tool to rename bookie identifier in ledger metadata
> -----------------------------------------------------------------
>
>                 Key: BOOKKEEPER-634
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-634
>             Project: Bookkeeper
>          Issue Type: Sub-task
>          Components: bookkeeper-client, bookkeeper-server
>    Affects Versions: 4.2.1
>            Reporter: Rakesh R
>            Assignee: Rakesh R
>             Fix For: 4.3.0
>
>         Attachments: 0001-BOOKKEEPER-634-initial-draft-version.patch, 
> 001-BOOKKEEPER-634-rename-bookieid-in-ledger.patch, 
> BOOKKEEPER-634-rename-bookieid-in-ledger.patch, BOOKKEEPER-634.patch, 
> BOOKKEEPER-634.patch
>
>
> This JIRA to discuss about admin tool for changing the bookie's IP to 
> hostname.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to