You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ra...@apache.org on 2015/10/28 07:23:02 UTC
hbase git commit: HBASE-14529 - Addendum to avoid SIGHUP call for
WINDOWS OS
Repository: hbase
Updated Branches:
refs/heads/master 210c3dd93 -> bae94ca97
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/bae94ca9
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/bae94ca9
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/bae94ca9
Branch: refs/heads/master
Commit: bae94ca9729bec2e0fe3556a31e29a2444737b1f
Parents: 210c3dd
Author: ramkrishna <ra...@gmail.com>
Authored: Wed Oct 28 11:52:20 2015 +0530
Committer: ramkrishna <ra...@gmail.com>
Committed: Wed Oct 28 11:52:20 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/bae94ca9/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 8a5e423..0234769 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;
@@ -606,12 +607,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());
+ }
+ });
+ }
}
protected TableDescriptors getFsTableDescriptors() throws IOException {