hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject hbase git commit: HBASE-19806 Lower max versions for table column family of hbase:meta
Date Thu, 18 Jan 2018 15:57:30 GMT
Repository: hbase
Updated Branches:
  refs/heads/master 678b98a72 -> 7573e07cc


HBASE-19806 Lower max versions for table column family of hbase:meta


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/7573e07c
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/7573e07c
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/7573e07c

Branch: refs/heads/master
Commit: 7573e07cc69d6da672512d6fb01926275dc27971
Parents: 678b98a
Author: tedyu <yuzhihong@gmail.com>
Authored: Thu Jan 18 07:57:22 2018 -0800
Committer: tedyu <yuzhihong@gmail.com>
Committed: Thu Jan 18 07:57:22 2018 -0800

----------------------------------------------------------------------
 .../java/org/apache/hadoop/hbase/util/FSTableDescriptors.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/7573e07c/hbase-server/src/main/java/org/apache/hadoop/hbase/util/FSTableDescriptors.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/util/FSTableDescriptors.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/util/FSTableDescriptors.java
index 9ec5704..c76cd90 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/util/FSTableDescriptors.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/util/FSTableDescriptors.java
@@ -190,8 +190,8 @@ public class FSTableDescriptors implements TableDescriptors {
                     .setBloomFilterType(BloomType.NONE)
                     .build())
             .addColumnFamily(ColumnFamilyDescriptorBuilder.newBuilder(HConstants.TABLE_FAMILY)
-                    // Ten is arbitrary number.  Keep versions to help debugging.
-                    .setMaxVersions(10)
+                    .setMaxVersions(conf.getInt(HConstants.HBASE_META_VERSIONS,
+                        HConstants.DEFAULT_HBASE_META_VERSIONS))
                     .setInMemory(true)
                     .setBlocksize(8 * 1024)
                     .setScope(HConstants.REPLICATION_SCOPE_LOCAL)


Mime
View raw message