KYLIN-2858 Add retry in cache sync, code format
Project: http://git-wip-us.apache.org/repos/asf/kylin/repo Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/a0ca77da Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/a0ca77da Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/a0ca77da Branch: refs/heads/ranger Commit: a0ca77da876c0c472b403ed70a81d92fba1717ed Parents: 7da2cf8 Author: shaofengshi <shaofeng...@apache.org> Authored: Sat Sep 9 16:35:50 2017 +0800 Committer: shaofengshi <shaofeng...@apache.org> Committed: Sat Sep 9 16:35:50 2017 +0800 ---------------------------------------------------------------------- .../src/main/java/org/apache/kylin/common/KylinConfigBase.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/kylin/blob/a0ca77da/core-common/src/main/java/org/apache/kylin/common/KylinConfigBase.java ---------------------------------------------------------------------- diff --git a/core-common/src/main/java/org/apache/kylin/common/KylinConfigBase.java b/core-common/src/main/java/org/apache/kylin/common/KylinConfigBase.java index 98bbb8b..cba47e6 100644 --- a/core-common/src/main/java/org/apache/kylin/common/KylinConfigBase.java +++ b/core-common/src/main/java/org/apache/kylin/common/KylinConfigBase.java @@ -253,8 +253,8 @@ abstract public class KylinConfigBase implements Serializable { return StorageURL.valueOf(getOptional("kylin.metadata.url", "kylin_metadata@hbase")); } - public int getCacheSyncRetrys(){ - return Integer.parseInt(getOptional("kylin.metadata.sync.retries","3")); + public int getCacheSyncRetrys() { + return Integer.parseInt(getOptional("kylin.metadata.sync.retries", "3")); } // for test only