Add overwrite option to fork lift tool
commit90c4a9489045805f1ffe87bada2ba09bf00a2aa5
authorArunachalam Thirupathi <arunachalam.t@gmail.com>
Wed, 21 May 2014 18:40:19 +0000 (21 11:40 -0700)
committerArunachalam Thirupathi <arunachalam.t@gmail.com>
Wed, 21 May 2014 18:40:19 +0000 (21 11:40 -0700)
treea19e1edcce0f99fad839570faae38abb4622dde1
parent62a5878747b54d3b978ad373a32004c49176888a
Add overwrite option to fork lift tool

If the key already exists in the destination cluster, forklift tool
will not overwrite the key. With the intent of supporting read only
cluster data to be fork lifted to the read/write cluster, overwrite
option is being added. If the newly forklifted data does not contain
the entire key set from the old, then the new data will be the mix
of old and new. The old data should expire sooner than the new one
enforced by the retention policy.
src/java/voldemort/client/protocol/admin/AdminClient.java
src/java/voldemort/utils/ClusterForkLiftTool.java
src/java/voldemort/versioning/VectorClockUtils.java
test/unit/voldemort/utils/ClusterForkLiftToolTest.java