Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-0.98 b3a6c0c34 -> c0bc570f4


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/c0bc570f
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/c0bc570f
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/c0bc570f

Branch: refs/heads/4.x-HBase-0.98
Commit: c0bc570f457be991defe92adcd0e05de984ba8b9
Parents: b3a6c0c
Author: Lars Hofhansl <[email protected]>
Authored: Sun Jul 3 18:01:17 2016 -0700
Committer: Lars Hofhansl <[email protected]>
Committed: Sun Jul 3 18:01:17 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/c0bc570f/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/c0bc570f/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;

Reply via email to