You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2011/04/08 20:06:38 UTC
svn commit: r1090376 - in /hbase/branches/0.90: CHANGES.txt
src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java
Author: stack
Date: Fri Apr 8 18:06:37 2011
New Revision: 1090376
URL: http://svn.apache.org/viewvc?rev=1090376&view=rev
Log:
HBASE-3756 Can't move META or ROOT from shell
Modified:
hbase/branches/0.90/CHANGES.txt
hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java
Modified: hbase/branches/0.90/CHANGES.txt
URL: http://svn.apache.org/viewvc/hbase/branches/0.90/CHANGES.txt?rev=1090376&r1=1090375&r2=1090376&view=diff
==============================================================================
--- hbase/branches/0.90/CHANGES.txt (original)
+++ hbase/branches/0.90/CHANGES.txt Fri Apr 8 18:06:37 2011
@@ -8,6 +8,7 @@ Release 0.90.3 - Unreleased
HBASE-3746 Clean up CompressionTest to not directly reference
DistributedFileSystem (todd)
HBASE-3734 HBaseAdmin creates new configurations in getCatalogTracker
+ HBASE-3756 Can't move META or ROOT from shell
IMPROVEMENT
HBASE-3717 deprecate HTable isTableEnabled() methods in favor of HBaseAdmin
Modified: hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java?rev=1090376&r1=1090375&r2=1090376&view=diff
==============================================================================
--- hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java (original)
+++ hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java Fri Apr 8 18:06:37 2011
@@ -193,8 +193,9 @@ public class AssignmentManager extends Z
* transition. Presumes <code>.META.</code> and <code>-ROOT-</code> deployed.
* @throws KeeperException
* @throws IOException
+ * @throws InterruptedException
*/
- void processFailover() throws KeeperException, IOException {
+ void processFailover() throws KeeperException, IOException, InterruptedException {
// Concurrency note: In the below the accesses on regionsInTransition are
// outside of a synchronization block where usually all accesses to RIT are
// synchronized. The presumption is that in this case it is safe since this
@@ -204,6 +205,14 @@ public class AssignmentManager extends Z
// TODO: Regions that have a null location and are not in regionsInTransitions
// need to be handled.
+ // Add -ROOT- and .META. on regions map. They must be deployed if we got
+ // this far. Caller takes care of it.
+ HServerInfo hsi =
+ this.serverManager.getHServerInfo(this.catalogTracker.getMetaLocation());
+ regionOnline(HRegionInfo.FIRST_META_REGIONINFO, hsi);
+ hsi = this.serverManager.getHServerInfo(this.catalogTracker.getRootLocation());
+ regionOnline(HRegionInfo.ROOT_REGIONINFO, hsi);
+
// Scan META to build list of existing regions, servers, and assignment
// Returns servers who have not checked in (assumed dead) and their regions
Map<HServerInfo,List<Pair<HRegionInfo,Result>>> deadServers =