Skip to content

Commit

Permalink
Print original XML for ZoneShrinkageCLI
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongjiewu committed Jan 31, 2014
1 parent 725a61f commit 5a5bdb8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/java/voldemort/tools/ZoneShrinkageCLI.java
Expand Up @@ -203,6 +203,9 @@ public void executeShrink(boolean realRun) {
String initialStoresXml = adminClient.metadataMgmtOps.getRemoteMetadata(initialClusterFirstNodeId, STORES_KEY).getValue();
logger.info("End fetching metadata for server " + initialClusterFirstNodeId);

logger.info("Original cluster.xml: \n" + initialClusterXml + "\n");
logger.info("Original stores.xml: \n" + initialStoresXml + "\n");

// Query the servers to see if all have the same XML
shouldContinue = verifyMetadataConsistency(adminClient, initialClusterNodes, initialClusterXml, initialStoresXml);
if(!shouldContinue) {
Expand All @@ -214,8 +217,8 @@ public void executeShrink(boolean realRun) {
String newStoresXml = shrinkStoresXml(initialStoresXml, droppingZoneId);
String newClusterXml = shrinkClusterXml(initialClusterXml, droppingZoneId);

logger.info("New cluster.xml: \n" + newClusterXml);
logger.info("New stores.xml: \n" + newStoresXml);
logger.info("New cluster.xml: \n" + newClusterXml + "\n");
logger.info("New stores.xml: \n" + newStoresXml + "\n");

// Verifying Server rebalancing states
shouldContinue = verifyRebalanceState(adminClient, initialClusterNodes);
Expand Down
1 change: 0 additions & 1 deletion test/unit/voldemort/tools/ZoneShrinkageCLITest.java
Expand Up @@ -15,7 +15,6 @@
*/
package voldemort.tools;

import org.junit.Before;
import org.junit.Test;
import voldemort.ClusterTestUtils;
import voldemort.ServerTestUtils;
Expand Down

0 comments on commit 5a5bdb8

Please sign in to comment.