hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ramkris...@apache.org
Subject hbase git commit: HBASE-14529 - Addendum to avoid SIGHUP call for WINDOWS OS
Date Wed, 28 Oct 2015 06:25:15 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 c174a54d8 -> e5b566e01


HBASE-14529 - Addendum to avoid SIGHUP call for WINDOWS OS


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/e5b566e0
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/e5b566e0
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/e5b566e0

Branch: refs/heads/branch-1
Commit: e5b566e01c6d7fb0f59270f18e317d6c914a9208
Parents: c174a54
Author: ramkrishna <ramkrishna.s.vasudevan@gmail.com>
Authored: Wed Oct 28 11:52:20 2015 +0530
Committer: ramkrishna <ramkrishna.s.vasudevan@gmail.com>
Committed: Wed Oct 28 11:54:56 2015 +0530

----------------------------------------------------------------------
 .../hadoop/hbase/regionserver/HRegionServer.java     | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/e5b566e0/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
index de68a77..5e81656 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
@@ -52,6 +52,7 @@ import javax.management.MalformedObjectNameException;
 import javax.management.ObjectName;
 import javax.servlet.http.HttpServlet;
 
+import org.apache.commons.lang.SystemUtils;
 import org.apache.commons.lang.math.RandomUtils;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
@@ -602,12 +603,14 @@ public class HRegionServer extends HasThread implements
     this.walRoller = new LogRoller(this, this);
     this.choreService = new ChoreService(getServerName().toString());
 
-    Signal.handle(new Signal("HUP"), new SignalHandler() {
-      public void handle(Signal signal) {
-        getConfiguration().reloadConfiguration();
-        configurationManager.notifyAllObservers(getConfiguration());
-      }
-    });
+    if (!SystemUtils.IS_OS_WINDOWS) {
+      Signal.handle(new Signal("HUP"), new SignalHandler() {
+        public void handle(Signal signal) {
+          getConfiguration().reloadConfiguration();
+          configurationManager.notifyAllObservers(getConfiguration());
+        }
+      });
+    }
   }
 
   /*


Mime
View raw message