Repository: phoenix Updated Branches: refs/heads/4.x-HBase-1.0 64f71d428 -> 7a476eb49
PHOENIX-3043 Tune table options for SYSTEM.STATS. Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/7a476eb4 Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/7a476eb4 Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/7a476eb4 Branch: refs/heads/4.x-HBase-1.0 Commit: 7a476eb494c9767be2eaffac2d87c7943a098b4d Parents: 64f71d4 Author: Lars Hofhansl <[email protected]> Authored: Sun Jul 3 18:01:17 2016 -0700 Committer: Lars Hofhansl <[email protected]> Committed: Sun Jul 3 18:03:38 2016 -0700 ---------------------------------------------------------------------- .../java/org/apache/phoenix/coprocessor/MetaDataProtocol.java | 3 ++- .../src/main/java/org/apache/phoenix/query/QueryConstants.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/phoenix/blob/7a476eb4/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataProtocol.java ---------------------------------------------------------------------- diff --git a/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataProtocol.java b/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataProtocol.java index df00f8f..8982fe7 100644 --- a/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataProtocol.java +++ b/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataProtocol.java @@ -68,8 +68,9 @@ public abstract class MetaDataProtocol extends MetaDataService { public static final long MIN_TABLE_TIMESTAMP = 0; public static final int DEFAULT_MAX_META_DATA_VERSIONS = 1000; - public static final int DEFAULT_MAX_STAT_DATA_VERSIONS = 3; public static final boolean DEFAULT_META_DATA_KEEP_DELETED_CELLS = true; + public static final int DEFAULT_MAX_STAT_DATA_VERSIONS = 1; + public static final boolean DEFAULT_STATS_KEEP_DELETED_CELLS = false; // Min system table timestamps for every release. public static final long MIN_SYSTEM_TABLE_TIMESTAMP_4_1_0 = MIN_TABLE_TIMESTAMP + 3; http://git-wip-us.apache.org/repos/asf/phoenix/blob/7a476eb4/phoenix-core/src/main/java/org/apache/phoenix/query/QueryConstants.java ---------------------------------------------------------------------- diff --git a/phoenix-core/src/main/java/org/apache/phoenix/query/QueryConstants.java b/phoenix-core/src/main/java/org/apache/phoenix/query/QueryConstants.java index 91c84e0..9f8f58c 100644 --- a/phoenix-core/src/main/java/org/apache/phoenix/query/QueryConstants.java +++ b/phoenix-core/src/main/java/org/apache/phoenix/query/QueryConstants.java @@ -303,7 +303,7 @@ public interface QueryConstants { + PHYSICAL_NAME + "," + COLUMN_FAMILY + ","+ GUIDE_POST_KEY+"))\n" + HConstants.VERSIONS + "=" + MetaDataProtocol.DEFAULT_MAX_STAT_DATA_VERSIONS + ",\n" + - HColumnDescriptor.KEEP_DELETED_CELLS + "=" + MetaDataProtocol.DEFAULT_META_DATA_KEEP_DELETED_CELLS + ",\n" + + HColumnDescriptor.KEEP_DELETED_CELLS + "=" + MetaDataProtocol.DEFAULT_STATS_KEEP_DELETED_CELLS + ",\n" + // Install split policy to prevent a physical table's stats from being split across regions. HTableDescriptor.SPLIT_POLICY + "='" + MetaDataSplitPolicy.class.getName() + "',\n" + PhoenixDatabaseMetaData.TRANSACTIONAL + "=" + Boolean.FALSE;
