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 2013/04/04 05:53:53 UTC

svn commit: r1464281 - /hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/Replication.java

Author: stack
Date: Thu Apr  4 03:53:53 2013
New Revision: 1464281

URL: http://svn.apache.org/r1464281
Log:
HBASE-8230 Possible NPE on regionserver abort if replication service has not been started

Modified:
    hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/Replication.java

Modified: hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/Replication.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/Replication.java?rev=1464281&r1=1464280&r2=1464281&view=diff
==============================================================================
--- hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/Replication.java (original)
+++ hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/Replication.java Thu Apr  4 03:53:53 2013
@@ -154,7 +154,9 @@ public class Replication implements WALA
   public void join() {
     if (this.replication) {
       this.replicationManager.join();
-      this.replicationSink.stopReplicationSinkServices();
+      if (this.replicationSink != null) {
+        this.replicationSink.stopReplicationSinkServices();
+      }
     }
   }