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:47 UTC

svn commit: r1325381 - /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/client/HTablePool.java

Author: stack
Date: Thu Apr 12 16:58:47 2012
New Revision: 1325381

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

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

Modified: hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/client/HTablePool.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/client/HTablePool.java?rev=1325381&r1=1325380&r2=1325381&view=diff
==============================================================================
--- hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/client/HTablePool.java (original)
+++ hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/client/HTablePool.java Thu Apr 12 16:58:47 2012
@@ -136,7 +136,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;