Adding forced relocate of region... see if it fixes hang up on hudon

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@669330 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2008-06-18 23:14:04 +00:00
parent 1342ed9b5c
commit 76d4d811eb
1 changed files with 3 additions and 0 deletions

View File

@ -154,6 +154,9 @@ public class TestMigrate extends HBaseTestCase {
"changes before opening a scanner");
waitOnStartCodeChange(retries);
HTable t = new HTable(this.conf, TABLENAME);
// Force client to relocate the region now the start code has changed
t.getConnection().relocateRegion(Bytes.toBytes(TABLENAME),
HConstants.EMPTY_BYTE_ARRAY);
int count = 0;
LOG.info("OPENING SCANNER");
Scanner s = t.getScanner(TABLENAME_COLUMNS);