[
https://issues.apache.org/jira/browse/BOOKKEEPER-494?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13752098#comment-13752098
]
Vinay commented on BOOKKEEPER-494:
----------------------------------
Thanks Sijie for taking a look at patch.
{quote}I had a different approach (will generate the patch) than the way that
Vinay did.{quote}
Sure, you can post the patch.
{quote}don't think it is a good idea to override everything without comparing
the old cookie and the new cookie. adding a new directory and replacing a
directory should be explicitly specified on the admin command not just
generating the cookie from configuration, since it is the critical metadata for
a bookie instance.{quote}
I had kept my approach was simple, though I agree some kind of explicit check
required b/n old and new cookies, Admin will take care of moving the data in
case of replacement and in case of addition of disks he just needs to configure
new disks and invoke this command to updated the cookies.
My point is, surely we can compare old and new cookies, but specifying
explicitly *adding a new directory and replacing a directory* is not necessary.
Let admin configure instead of passing, from generated cookie we can get the
diff.
{quote}also during modifying the cookies, we should not override the old cookie
file, otherwise we don't have any chance to rollback and also for consistency
checking.{quote}
I thought, since this command is related to only one bookie, rollback is
nothing but rollback the configuration and execute the command again.
> Ability to add new ledger disk to a bookie
> ------------------------------------------
>
> Key: BOOKKEEPER-494
> URL: https://issues.apache.org/jira/browse/BOOKKEEPER-494
> Project: Bookkeeper
> Issue Type: New Feature
> Components: bookkeeper-server
> Reporter: Sijie Guo
> Assignee: Vinay
> Fix For: 4.3.0
>
> Attachments: BOOKKEEPER-494.diff
>
>
> Currently we had *Cookie* for each bookie to record the directories it used
> for ledgers. So when the admin wants to add a new disk for a bookie, we can't
> change the configuration and restart it simply. an admin command would be
> added to help admin guys adding a new disk to a bookie and upgrading its
> *Cookie*.
> Adding a brand new disk would be quite easy. But if we want to remove a disk
> or replace a disk, it isn't trivial. BOOKKEEPER-201 would take care of
> removing/replace a disk.
--
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