From 987b81e9b6b379e52d181c2ae0fb62cec8e2acf8 Mon Sep 17 00:00:00 2001 From: yangzhong Date: Tue, 12 Apr 2016 14:25:33 +0800 Subject: [PATCH] KYLIN-1458: run CubeMigrationCheckCLI under the condition with parameter 'realExecute' set to true --- .../java/org/apache/kylin/storage/hbase/util/CubeMigrationCLI.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/storage-hbase/src/main/java/org/apache/kylin/storage/hbase/util/CubeMigrationCLI.java b/storage-hbase/src/main/java/org/apache/kylin/storage/hbase/util/CubeMigrationCLI.java index 53cffe5..ce2b135 100644 --- a/storage-hbase/src/main/java/org/apache/kylin/storage/hbase/util/CubeMigrationCLI.java +++ b/storage-hbase/src/main/java/org/apache/kylin/storage/hbase/util/CubeMigrationCLI.java @@ -140,11 +140,10 @@ public class CubeMigrationCLI { if (realExecute.equalsIgnoreCase("true")) { doOpts(); + checkMigrationSuccess(dstConfig, cubeName, true); } else { showOpts(); } - - checkMigrationSuccess(dstConfig, cubeName, true); } public static void moveCube(String srcCfgUri, String dstCfgUri, String cubeName, String projectName, String copyAcl, String purgeAndDisable, String overwriteIfExists, String realExecute) throws IOException, InterruptedException { -- 2.5.4 (Apple Git-61)