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

This commit is contained in:
ramkrishna 2015-10-28 11:52:20 +05:30
parent 210c3dd937
commit bae94ca972
1 changed files with 9 additions and 6 deletions

View File

@ -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,6 +607,7 @@ public class HRegionServer extends HasThread implements
this.walRoller = new LogRoller(this, this);
this.choreService = new ChoreService(getServerName().toString());
if (!SystemUtils.IS_OS_WINDOWS) {
Signal.handle(new Signal("HUP"), new SignalHandler() {
public void handle(Signal signal) {
getConfiguration().reloadConfiguration();
@ -613,6 +615,7 @@ public class HRegionServer extends HasThread implements
}
});
}
}
protected TableDescriptors getFsTableDescriptors() throws IOException {
return new FSTableDescriptors(this.conf,