You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "cuijianwei (JIRA)" <ji...@apache.org> on 2013/12/06 03:42:35 UTC

[jira] [Updated] (HBASE-10093) Unregister ReplicationSource metric bean when the replication source thread is terminated

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

cuijianwei updated HBASE-10093:
-------------------------------

    Attachment: HBASE-10093-0.94-v1.patch

This patch will make replication source stop report metrics when be terminated.

> Unregister ReplicationSource metric bean when the replication source thread is terminated 
> ------------------------------------------------------------------------------------------
>
>                 Key: HBASE-10093
>                 URL: https://issues.apache.org/jira/browse/HBASE-10093
>             Project: HBase
>          Issue Type: Improvement
>          Components: Replication
>    Affects Versions: 0.94.14
>            Reporter: cuijianwei
>         Attachments: HBASE-10093-0.94-v1.patch
>
>
> Each replication source thread will register a metric bean to show its statistics. The source threads will be terminated when region server exit and the metric beans will be removed. However, replication source thread may also be terminated when user removing the peer explicitly or it just takes a recover queue and finished replicating the queued HLogs. In these situations, the metric bean won't be unregistered and user may be confused to always see the statistics from terminated replication source threads. Maybe, it is more clear to remove the metric bean after replication source thread terminated? Then, the statistics will only from active replication sources.



--
This message was sent by Atlassian JIRA
(v6.1#6144)