Skip to content

Commit

Permalink
Correctly print RebalanceTask at creation time.
Browse files Browse the repository at this point in the history
  • Loading branch information
jayjwylie committed Jun 20, 2013
1 parent ec9cd1e commit 77f3b69
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Expand Up @@ -49,6 +49,8 @@ public DonorBasedRebalanceTask(final int batchId,

RebalanceUtils.assertSameDonor(stealInfos, -1);
this.donorNodeId = stealInfos.get(0).getDonorId();

taskLog(toString());
}

@Override
Expand Down
4 changes: 1 addition & 3 deletions src/java/voldemort/client/rebalance/task/RebalanceTask.java
Expand Up @@ -68,8 +68,6 @@ public RebalanceTask(final int batchId,
this.partitionStoreCount = RebalanceUtils.countPartitionStores(stealInfos);
this.permitAcquisitionTimeMs = -1;
this.taskCompletionTimeMs = -1;

taskLog(toString());
}

public List<RebalancePartitionsInfo> getStealInfos() {
Expand All @@ -96,7 +94,7 @@ protected void acquirePermit(int nodeId) throws InterruptedException {

@Override
public String toString() {
return "Rebalance task " + taskId + "from batch " + batchId + " : " + getStealInfos();
return "Rebalance task " + taskId + " from batch " + batchId + " : " + getStealInfos();
}

/**
Expand Down
Expand Up @@ -78,6 +78,8 @@ public StealerBasedRebalanceTask(final int batchId,

this.maxTries = maxTries;
this.stealerNodeId = stealInfo.getStealerId();

taskLog(toString());
}

private int startNodeRebalancing() {
Expand Down

0 comments on commit 77f3b69

Please sign in to comment.