hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mbau...@apache.org
Subject svn commit: r1388796 - /hbase/branches/0.89-fb/src/main/java/org/apache/hadoop/hbase/master/ServerManager.java
Date Sat, 22 Sep 2012 12:50:16 GMT
Author: mbautin
Date: Sat Sep 22 12:50:16 2012
New Revision: 1388796

URL: http://svn.apache.org/viewvc?rev=1388796&view=rev
Log:
[HBASE-6840] [0.89-fb] SplitLogManager should reassign tasks even on a clean RS shutdown.

Author: aaiyer

Summary:
SplitLogManager does not reassign tasks if the regionserver does a clean
shutdown. We should reassign the task even if there is a clean shutdown.

This is a problem if the shutting down RS is the 3rd splitlog worker. Master
just sits there in a loop waiting for the task to finish, as the timeout
will not reassign the task any further.

Test Plan: Run unit tests

Reviewers: pkhemani, kannan, kranganathan, liyintang

Reviewed By: pkhemani

CC: hbase-eng@

Differential Revision: https://phabricator.fb.com/D578411

Modified:
    hbase/branches/0.89-fb/src/main/java/org/apache/hadoop/hbase/master/ServerManager.java

Modified: hbase/branches/0.89-fb/src/main/java/org/apache/hadoop/hbase/master/ServerManager.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.89-fb/src/main/java/org/apache/hadoop/hbase/master/ServerManager.java?rev=1388796&r1=1388795&r2=1388796&view=diff
==============================================================================
--- hbase/branches/0.89-fb/src/main/java/org/apache/hadoop/hbase/master/ServerManager.java
(original)
+++ hbase/branches/0.89-fb/src/main/java/org/apache/hadoop/hbase/master/ServerManager.java
Sat Sep 22 12:50:16 2012
@@ -477,6 +477,9 @@ public class ServerManager {
     LOG.info("Removing server's info " + serverInfo.getServerName());
     this.serversToServerInfo.remove(serverInfo.getServerName());
     serversToLoad.removeServerLoad(serverInfo.getServerName());
+    if (this.master.getSplitLogManager() != null) {
+      this.master.getSplitLogManager().handleDeadServer(serverInfo.getServerName());
+    }
   }
 
   /*



Mime
View raw message