HBASE-1488 After 1304 goes in, fix and reenable test of thrift, mr indexer, and merge tool

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@786620 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2009-06-19 18:46:38 +00:00
parent cfc84a624f
commit 3b01f1a469
2 changed files with 13 additions and 7 deletions

View File

@ -200,6 +200,8 @@ Release 0.20.0 - Unreleased
in spinning state, regions not reassigned
HBASE-1543 Unnecessary toString during scanning costs us some CPU
HBASE-1544 Cleanup HTable (Jonathan Gray via Stack)
HBASE-1488 After 1304 goes in, fix and reenable test of thrift, mr indexer,
and merge tool
IMPROVEMENTS
HBASE-1089 Add count of regions on filesystem to master UI; add percentage

View File

@ -45,8 +45,8 @@ import org.apache.hadoop.hbase.regionserver.InternalScanner;
import org.apache.hadoop.util.ToolRunner;
/** Test stand alone merge tool that can merge arbitrary regions */
public class DisabledTestMergeTool extends HBaseTestCase {
static final Log LOG = LogFactory.getLog(DisabledTestMergeTool.class);
public class TestMergeTool extends HBaseTestCase {
static final Log LOG = LogFactory.getLog(TestMergeTool.class);
// static final byte [] COLUMN_NAME = Bytes.toBytes("contents:");
static final byte [] FAMILY = Bytes.toBytes("contents");
static final byte [] QUALIFIER = Bytes.toBytes("dc");
@ -194,13 +194,17 @@ public class DisabledTestMergeTool extends HBaseTestCase {
Scan scan = new Scan();
scan.addFamily(FAMILY);
InternalScanner scanner = merged.getScanner(scan);
try {
List<KeyValue> testRes = null;
while(true) {
testRes = new ArrayList<KeyValue>();
boolean hasNext = scanner.next(testRes);
if(!hasNext) {
break;
while (true) {
testRes = new ArrayList<KeyValue>();
boolean hasNext = scanner.next(testRes);
if (!hasNext) {
break;
}
}
} finally {
scanner.close();
}
//!Test