[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-5?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mahadev konar updated ZOOKEEPER-5:
----------------------------------

    Attachment: ZOOKEEPER-5.patch

this is a patch that fixes a few bugs in the previous one.. 


the usage of running upgrade is 
bin/zkserver.sh upgrade datadir snapshotdir

if you are not using shell scripts then its 

java -cp log4j.jar:zookeepr.jar org.apache.zookeeper.server.upgrade.Upgrade 
dataDir snapshotDir.

I am still in testing it but it would be great if someone could take a look at 
it .... 

The patch does this:

1) takes the input datadir and snapshot dir
2) baks up the datadir in datadir/version-1 and snapshotdir in 
snapshotdir/version-1
3) creates directory datadir/version-2 and snapshotdir/version-2
4) reads the snapshots and txns from version-1 dir
5) creates an old datatree in memory
6) converts that old datatree to a new datatree
7) creates a new snapshot
8) done

> Upgrade Feature in Zookeeper server.
> ------------------------------------
>
>                 Key: ZOOKEEPER-5
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-5
>             Project: Zookeeper
>          Issue Type: New Feature
>          Components: server
>            Reporter: Mahadev konar
>            Assignee: Mahadev konar
>             Fix For: 3.0.0
>
>         Attachments: ZOOKEEPER-5.patch, ZOOKEEPER-5.patch
>
>
> We need an upgrade feature in zookeeper where we can upgrade the old 
> databases to a new one.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to