hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From la...@apache.org
Subject svn commit: r1425719 - /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
Date Tue, 25 Dec 2012 05:03:27 GMT
Author: larsh
Date: Tue Dec 25 05:03:27 2012
New Revision: 1425719

URL: http://svn.apache.org/viewvc?rev=1425719&view=rev
Log:
HBASE-7432 TestHBaseFsck prevents testsuite from finishing

Modified:
    hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java

Modified: hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java?rev=1425719&r1=1425718&r2=1425719&view=diff
==============================================================================
--- hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
(original)
+++ hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
Tue Dec 25 05:03:27 2012
@@ -2881,7 +2881,7 @@ public class HRegionServer implements HR
     checkOpen();
     //Check for permissions to close.
     HRegion actualRegion = this.getFromOnlineRegions(region.getEncodedName());
-    if (actualRegion.getCoprocessorHost() != null) {
+    if (actualRegion != null && actualRegion.getCoprocessorHost() != null) {
       actualRegion.getCoprocessorHost().preClose(false);
     }
     LOG.info("Received close region: " + region.getRegionNameAsString() +
@@ -2933,7 +2933,7 @@ public class HRegionServer implements HR
       final boolean zk, final int versionOfClosingNode) {
     
     HRegion actualRegion = this.getFromOnlineRegions(region.getEncodedName());
-    if ((actualRegion != null) && (actualRegion.getCoprocessorHost() !=null)){
+    if (actualRegion != null && actualRegion.getCoprocessorHost() != null) {
       try {
         actualRegion.getCoprocessorHost().preClose(abort);
       } catch (IOException e) {



Mime
View raw message