hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject svn commit: r1172066 - /hbase/trunk/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java
Date Sat, 17 Sep 2011 20:38:42 GMT
Author: tedyu
Date: Sat Sep 17 20:38:41 2011
New Revision: 1172066

URL: http://svn.apache.org/viewvc?rev=1172066&view=rev
Log:
HBASE-4400 rename metaRegion to region in HBaseTestingUtility.createAndForceNodeToOpenedState()

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

Modified: hbase/trunk/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java
URL: http://svn.apache.org/viewvc/hbase/trunk/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java?rev=1172066&r1=1172065&r2=1172066&view=diff
==============================================================================
--- hbase/trunk/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java (original)
+++ hbase/trunk/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java Sat Sep 17
20:38:41 2011
@@ -1564,7 +1564,7 @@ public class HBaseTestingUtility {
   /**
    * Creates an znode with OPENED state.
    * @param TEST_UTIL
-   * @param metaRegion
+   * @param region
    * @param regionServer
    * @return
    * @throws IOException
@@ -1573,7 +1573,7 @@ public class HBaseTestingUtility {
    * @throws NodeExistsException
    */
   public static ZooKeeperWatcher createAndForceNodeToOpenedState(
-      HBaseTestingUtility TEST_UTIL, HRegion metaRegion,
+      HBaseTestingUtility TEST_UTIL, HRegion region,
       HRegionServer regionServer) throws ZooKeeperConnectionException,
       IOException, KeeperException, NodeExistsException {
     ZooKeeperWatcher zkw = new ZooKeeperWatcher(TEST_UTIL.getConfiguration(),
@@ -1584,11 +1584,11 @@ public class HBaseTestingUtility {
           }
         });
 
-    ZKAssign.createNodeOffline(zkw, metaRegion.getRegionInfo(), regionServer
+    ZKAssign.createNodeOffline(zkw, region.getRegionInfo(), regionServer
         .getServerName());
-    int version = ZKAssign.transitionNodeOpening(zkw, metaRegion
+    int version = ZKAssign.transitionNodeOpening(zkw, region
         .getRegionInfo(), regionServer.getServerName());
-    ZKAssign.transitionNodeOpened(zkw, metaRegion.getRegionInfo(), regionServer
+    ZKAssign.transitionNodeOpened(zkw, region.getRegionInfo(), regionServer
         .getServerName(), version);
     return zkw;
   }



Mime
View raw message