HBASE-14529 - Addendum to avoid SIGHUP call for WINDOWS OS
This commit is contained in:
parent
210c3dd937
commit
bae94ca972
@ -52,6 +52,7 @@ import javax.management.MalformedObjectNameException;
|
|||||||
import javax.management.ObjectName;
|
import javax.management.ObjectName;
|
||||||
import javax.servlet.http.HttpServlet;
|
import javax.servlet.http.HttpServlet;
|
||||||
|
|
||||||
|
import org.apache.commons.lang.SystemUtils;
|
||||||
import org.apache.commons.lang.math.RandomUtils;
|
import org.apache.commons.lang.math.RandomUtils;
|
||||||
import org.apache.commons.logging.Log;
|
import org.apache.commons.logging.Log;
|
||||||
import org.apache.commons.logging.LogFactory;
|
import org.apache.commons.logging.LogFactory;
|
||||||
@ -606,12 +607,14 @@ public class HRegionServer extends HasThread implements
|
|||||||
this.walRoller = new LogRoller(this, this);
|
this.walRoller = new LogRoller(this, this);
|
||||||
this.choreService = new ChoreService(getServerName().toString());
|
this.choreService = new ChoreService(getServerName().toString());
|
||||||
|
|
||||||
Signal.handle(new Signal("HUP"), new SignalHandler() {
|
if (!SystemUtils.IS_OS_WINDOWS) {
|
||||||
public void handle(Signal signal) {
|
Signal.handle(new Signal("HUP"), new SignalHandler() {
|
||||||
getConfiguration().reloadConfiguration();
|
public void handle(Signal signal) {
|
||||||
configurationManager.notifyAllObservers(getConfiguration());
|
getConfiguration().reloadConfiguration();
|
||||||
}
|
configurationManager.notifyAllObservers(getConfiguration());
|
||||||
});
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected TableDescriptors getFsTableDescriptors() throws IOException {
|
protected TableDescriptors getFsTableDescriptors() throws IOException {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user