hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jean-Daniel Cryans (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HBASE-2528) ServerManager.ServerMonitor isn't daemonized
Date Tue, 11 May 2010 00:19:31 GMT

     [ https://issues.apache.org/jira/browse/HBASE-2528?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jean-Daniel Cryans resolved HBASE-2528.
---------------------------------------

    Resolution: Fixed

Small fix, committed to branch and trunk.

> ServerManager.ServerMonitor isn't daemonized
> --------------------------------------------
>
>                 Key: HBASE-2528
>                 URL: https://issues.apache.org/jira/browse/HBASE-2528
>             Project: Hadoop HBase
>          Issue Type: Improvement
>            Reporter: Jean-Daniel Cryans
>            Assignee: Jean-Daniel Cryans
>             Fix For: 0.20.5, 0.21.0
>
>
> 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:
> {code}
> @@ -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");
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message