hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject svn commit: r1560494 - /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
Date Wed, 22 Jan 2014 20:17:44 GMT
Author: apurtell
Date: Wed Jan 22 20:17:43 2014
New Revision: 1560494

URL: http://svn.apache.org/r1560494
Log:
Amend HBASE-10338 Fix NPE if the server is terminated before the RegionServerCoprocessorHost
is initialized (Vandana Ayyalasomayajula)

Modified:
    hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java

Modified: hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java?rev=1560494&r1=1560493&r2=1560494&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
(original)
+++ hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
Wed Jan 22 20:17:43 2014
@@ -1734,7 +1734,9 @@ public class HRegionServer implements Cl
   @Override
   public void stop(final String msg) {
     try {
-      this.rsHost.preStop(msg);
+    	if (this.rsHost != null) {
+    		this.rsHost.preStop(msg);
+    	}
       this.stopped = true;
       LOG.info("STOPPED: " + msg);
       // Wakes run() if it is sleeping



Mime
View raw message