HBase
  1. HBase
  2. HBASE-10093

Unregister ReplicationSource metric bean when the replication source thread is terminated

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.94.14
    • Fix Version/s: 0.94.15
    • Component/s: Replication
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      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.

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        1d 4h 48m 1 Lars Hofhansl 07/Dec/13 07:26
        Resolved Resolved Closed Closed
        22d 20h 44m 1 Lars Hofhansl 30/Dec/13 04:11
        Lars Hofhansl made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Hide
        Hudson added a comment -

        SUCCESS: Integrated in HBase-0.94 #1220 (See https://builds.apache.org/job/HBase-0.94/1220/)
        HBASE-10093 Unregister ReplicationSource metric bean when the replication source thread is terminated (cuijianwei) (larsh: rev 1548802)

        • /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSource.java
        • /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceMetrics.java
        • /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationStatistics.java
        Show
        Hudson added a comment - SUCCESS: Integrated in HBase-0.94 #1220 (See https://builds.apache.org/job/HBase-0.94/1220/ ) HBASE-10093 Unregister ReplicationSource metric bean when the replication source thread is terminated (cuijianwei) (larsh: rev 1548802) /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSource.java /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceMetrics.java /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationStatistics.java
        Hide
        Hudson added a comment -

        SUCCESS: Integrated in HBase-0.94-security #354 (See https://builds.apache.org/job/HBase-0.94-security/354/)
        HBASE-10093 Unregister ReplicationSource metric bean when the replication source thread is terminated (cuijianwei) (larsh: rev 1548802)

        • /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSource.java
        • /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceMetrics.java
        • /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationStatistics.java
        Show
        Hudson added a comment - SUCCESS: Integrated in HBase-0.94-security #354 (See https://builds.apache.org/job/HBase-0.94-security/354/ ) HBASE-10093 Unregister ReplicationSource metric bean when the replication source thread is terminated (cuijianwei) (larsh: rev 1548802) /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSource.java /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceMetrics.java /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationStatistics.java
        Lars Hofhansl made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Hadoop Flags Reviewed [ 10343 ]
        Resolution Fixed [ 1 ]
        Hide
        Lars Hofhansl added a comment -

        Committed to 0.94. Thanks for the patch.

        Show
        Lars Hofhansl added a comment - Committed to 0.94. Thanks for the patch.
        Lars Hofhansl made changes -
        Assignee cuijianwei [ cuijianwei ]
        Hide
        Lars Hofhansl added a comment -

        Good find. Let me take a closer look tomorrow.

        Show
        Lars Hofhansl added a comment - Good find. Let me take a closer look tomorrow.
        Lars Hofhansl made changes -
        Fix Version/s 0.94.15 [ 12325559 ]
        Hide
        andylee added a comment -

        +1,A improvement for replication metrics.

        Show
        andylee added a comment - +1,A improvement for replication metrics.
        cuijianwei made changes -
        Field Original Value New Value
        Attachment HBASE-10093-0.94-v1.patch [ 12617317 ]
        Hide
        cuijianwei added a comment -

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

        Show
        cuijianwei added a comment - This patch will make replication source stop report metrics when be terminated.
        cuijianwei created issue -

          People

          • Assignee:
            cuijianwei
            Reporter:
            cuijianwei
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development