Skip to content
Browse files

Increase the number of threads in migrate partitions tool

  • Loading branch information...
1 parent 5adf557 commit bfc773f1379b839414565fb6ba4780fa8ce8037a @rsumbaly rsumbaly committed with afeinberg Jan 10, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/java/voldemort/client/rebalance/MigratePartitions.java
View
5 src/java/voldemort/client/rebalance/MigratePartitions.java
@@ -321,11 +321,12 @@ public static void main(String[] args) throws IOException {
try {
VoldemortConfig voldemortConfig = createTempVoldemortConfig();
Cluster currentCluster = new ClusterMapper().readCluster(new BufferedReader(new FileReader(currentClusterFile)));
+ Cluster targetCluster = new ClusterMapper().readCluster(new BufferedReader(new FileReader(targetClusterFile)));
adminClient = RebalanceUtils.createTempAdminClient(voldemortConfig,
currentCluster,
- 1,
+ targetCluster.getNumberOfNodes(),
1);
- Cluster targetCluster = new ClusterMapper().readCluster(new BufferedReader(new FileReader(targetClusterFile)));
+
List<StoreDefinition> currentStoreDefs = new StoreDefinitionsMapper().readStoreList(new BufferedReader(new FileReader(currentStoresFile)));
List<StoreDefinition> targetStoreDefs = new StoreDefinitionsMapper().readStoreList(new BufferedReader(new FileReader(targetStoresFile)));

0 comments on commit bfc773f

Please sign in to comment.
Something went wrong with that request. Please try again.