Repository: phoenix Updated Branches: refs/heads/4.x-HBase-1.1 20a64e1f4 -> 42fdd8b81
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/42fdd8b8 Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/42fdd8b8 Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/42fdd8b8 Branch: refs/heads/4.x-HBase-1.1 Commit: 42fdd8b81826c51affe0727d82b643470a25a226 Parents: 20a64e1 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:55 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/42fdd8b8/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/42fdd8b8/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;
