Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
ServerManager.ServerMonitor isn't daemonized, I probably accumulated an hour of waiting on that thread while shutting down the master over the past 2 years. Easy fix:
@@ -147,7 +148,9 @@ this.minimumServerCount = c.getInt("hbase.regions.server.count.min", 0); this.serverMonitorThread = new ServerMonitor(master.metaRescanInterval, master.shutdownRequested); - this.serverMonitorThread.start(); + String n = Thread.currentThread().getName(); + Threads.setDaemonThreadRunning(this.serverMonitorThread, + n + ".serverMonitor");