hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1041697 - in /hbase/branches/0.90: CHANGES.txt src/main/java/org/apache/hadoop/hbase/catalog/CatalogTracker.java src/main/java/org/apache/hadoop/hbase/client/HConnectionManager.java
Date Fri, 03 Dec 2010 05:36:25 GMT
Author: stack
Date: Fri Dec  3 05:36:25 2010
New Revision: 1041697

URL: http://svn.apache.org/viewvc?rev=1041697&view=rev
Log:
HBASE-3304 Get spurious master fails during bootup

Modified:
    hbase/branches/0.90/CHANGES.txt
    hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/catalog/CatalogTracker.java
    hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/client/HConnectionManager.java

Modified: hbase/branches/0.90/CHANGES.txt
URL: http://svn.apache.org/viewvc/hbase/branches/0.90/CHANGES.txt?rev=1041697&r1=1041696&r2=1041697&view=diff
==============================================================================
--- hbase/branches/0.90/CHANGES.txt (original)
+++ hbase/branches/0.90/CHANGES.txt Fri Dec  3 05:36:25 2010
@@ -722,6 +722,7 @@ Release 0.90.0 - Unreleased
    HBASE-3301  Treat java.net.SocketTimeoutException same as ConnectException
                assigning/unassigning region
    HBASE-3296  Newly created table ends up disabled instead of assigned
+   HBASE-3304  Get spurious master fails during bootup
 
 
   IMPROVEMENTS

Modified: hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/catalog/CatalogTracker.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/catalog/CatalogTracker.java?rev=1041697&r1=1041696&r2=1041697&view=diff
==============================================================================
--- hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/catalog/CatalogTracker.java
(original)
+++ hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/catalog/CatalogTracker.java
Fri Dec  3 05:36:25 2010
@@ -453,6 +453,8 @@ public class CatalogTracker {
       connection = waitForRootServerConnection(timeout);
     } catch (NotAllMetaRegionsOnlineException e) {
       // Pass
+    } catch (org.apache.hadoop.hbase.ipc.ServerNotRunningException e) {
+      // Pass -- remote server is not up so can't be carrying root
     } catch (IOException e) {
       // Unexpected exception
       throw e;
@@ -482,4 +484,4 @@ public class CatalogTracker {
   public HConnection getConnection() {
     return this.connection;
   }
-}
\ No newline at end of file
+}

Modified: hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/client/HConnectionManager.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/client/HConnectionManager.java?rev=1041697&r1=1041696&r2=1041697&view=diff
==============================================================================
--- hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/client/HConnectionManager.java
(original)
+++ hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/client/HConnectionManager.java
Fri Dec  3 05:36:25 2010
@@ -955,7 +955,8 @@ public class HConnectionManager {
                 regionServer.getInetSocketAddress(), this.conf,
                 this.maxRPCAttempts, this.rpcTimeout, this.rpcTimeout);
           } catch (RemoteException e) {
-            LOG.warn("Remove exception connecting to RS", e);
+            LOG.warn("RemoteException connecting to RS", e);
+            // Throw what the RemoteException was carrying.
             throw RemoteExceptionHandler.decodeRemoteException(e);
           }
           this.servers.put(regionServer.toString(), server);



Mime
View raw message