Repository: kylin Updated Branches: refs/heads/master 22e6969cb -> f0473fcaf
KYLIN-1458: run CubeMigrationCheckCLI under the condition with parameter 'realExecute' set to true Project: http://git-wip-us.apache.org/repos/asf/kylin/repo Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/f0473fca Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/f0473fca Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/f0473fca Branch: refs/heads/master Commit: f0473fcafe37ecf5caaf977d105c5bb7c1654c56 Parents: 22e6969 Author: Zhong <yangzh...@lm-shc-16501214.corp.ebay.com> Authored: Mon Apr 18 17:11:11 2016 +0800 Committer: Zhong <yangzh...@lm-shc-16501214.corp.ebay.com> Committed: Mon Apr 18 17:11:11 2016 +0800 ---------------------------------------------------------------------- .../org/apache/kylin/storage/hbase/util/CubeMigrationCLI.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/kylin/blob/f0473fca/storage-hbase/src/main/java/org/apache/kylin/storage/hbase/util/CubeMigrationCLI.java ---------------------------------------------------------------------- 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 09aab48..2de7f01 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 @@ -138,11 +138,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 {