From 5f771511427ede8608b1673579cebf5c3f17da51 Mon Sep 17 00:00:00 2001 From: Zhihong Yu Date: Thu, 25 Aug 2011 14:33:20 +0000 Subject: [PATCH] HBASE-4253 Intermittent test failure because of missing config parameter in new HTable(tablename) (Ramkrishna) git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1161577 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES.txt | 2 ++ .../java/org/apache/hadoop/hbase/client/TestHTablePool.java | 5 +++-- .../org/apache/hadoop/hbase/client/TestScannerTimeout.java | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index 457aed9d381..4cbbce514b1 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -213,6 +213,8 @@ Release 0.91.0 - Unreleased HBASE-4225 NoSuchColumnFamilyException in multi doesn't say which family is bad (Ramkrishna Vasudevan) HBASE-4220 Lots of DNS queries from client + HBASE-4253 Intermittent test failure because of missing config parameter in new + HTable(tablename) (Ramkrishna) IMPROVEMENTS HBASE-3290 Max Compaction Size (Nicolas Spiegelberg via Stack) diff --git a/src/test/java/org/apache/hadoop/hbase/client/TestHTablePool.java b/src/test/java/org/apache/hadoop/hbase/client/TestHTablePool.java index 80ad8b0d200..13fbbe0a006 100644 --- a/src/test/java/org/apache/hadoop/hbase/client/TestHTablePool.java +++ b/src/test/java/org/apache/hadoop/hbase/client/TestHTablePool.java @@ -162,7 +162,8 @@ public class TestHTablePool { // get table will return proxy implementation final HTableInterface table = pool.getTable(tableName); - HTableInterface alienTable = new HTable(TABLENAME) { + HTableInterface alienTable = new HTable(TEST_UTIL.getConfiguration(), + TABLENAME) { // implementation doesn't matter as long the table is not from // pool }; @@ -348,4 +349,4 @@ public class TestHTablePool { return suite; } -} \ No newline at end of file +} diff --git a/src/test/java/org/apache/hadoop/hbase/client/TestScannerTimeout.java b/src/test/java/org/apache/hadoop/hbase/client/TestScannerTimeout.java index 11815e50f7a..c33c2efe0c4 100644 --- a/src/test/java/org/apache/hadoop/hbase/client/TestScannerTimeout.java +++ b/src/test/java/org/apache/hadoop/hbase/client/TestScannerTimeout.java @@ -157,7 +157,7 @@ public class TestScannerTimeout { scan.setCaching(SCANNER_CACHING); LOG.info("************ TEST3686A"); MetaReader.fullScanMetaAndPrint(TEST_UTIL.getHBaseCluster().getMaster().getCatalogTracker()); - HTable table = new HTable(TABLE_NAME); + HTable table = new HTable(TEST_UTIL.getConfiguration(), TABLE_NAME); LOG.info("START ************ TEST3686A---22"); ResultScanner r = table.getScanner(scan);