hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r669330 - /hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/util/TestMigrate.java
Date Wed, 18 Jun 2008 23:14:05 GMT
Author: stack
Date: Wed Jun 18 16:14:04 2008
New Revision: 669330

URL: http://svn.apache.org/viewvc?rev=669330&view=rev
Log:
Adding forced relocate of region... see if it fixes hang up on hudon

Modified:
    hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/util/TestMigrate.java

Modified: hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/util/TestMigrate.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/util/TestMigrate.java?rev=669330&r1=669329&r2=669330&view=diff
==============================================================================
--- hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/util/TestMigrate.java (original)
+++ hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/util/TestMigrate.java Wed Jun 18 16:14:04
2008
@@ -154,6 +154,9 @@
         "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);



Mime
View raw message