You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2012/04/12 18:58:20 UTC

svn commit: r1325380 - /hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/HTablePool.java

Author: stack
Date: Thu Apr 12 16:58:20 2012
New Revision: 1325380

URL: http://svn.apache.org/viewvc?rev=1325380&view=rev
Log:
HBASE-5773 HtablePool constructor not reading config files in certain cases

Modified:
    hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/HTablePool.java

Modified: hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/HTablePool.java
URL: http://svn.apache.org/viewvc/hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/HTablePool.java?rev=1325380&r1=1325379&r2=1325380&view=diff
==============================================================================
--- hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/HTablePool.java (original)
+++ hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/HTablePool.java Thu Apr 12 16:58:20 2012
@@ -140,7 +140,7 @@ public class HTablePool implements Close
       final HTableInterfaceFactory tableFactory, PoolType poolType) {
     // Make a new configuration instance so I can safely cleanup when
     // done with the pool.
-    this.config = config == null ? new Configuration() : config;
+    this.config = config == null ? HBaseConfiguration.create() : config;
     this.maxSize = maxSize;
     this.tableFactory = tableFactory == null ? new HTableFactory()
         : tableFactory;