[
https://issues.apache.org/jira/browse/HBASE-3859?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13448971#comment-13448971
]
Elliott Clark commented on HBASE-3859:
--------------------------------------
Wouldn't it be better to use MetricsTimeVaryingLong rather than a
MetricsLongValue and an AtomicLong
[~lhofhansl] We're starting to get close to finishing the move to metrics2
however the HRegionServer is the last part that needs to be moved over. My
plan is to move over and clean up stuff in HBASE-4050 in the coming weeks.
With that said I still think this can be a useful issue and having it in the
Mertics1 version will make sure that it's ported over when the time comes.
> Increment a counter when a Scanner lease expires
> ------------------------------------------------
>
> Key: HBASE-3859
> URL: https://issues.apache.org/jira/browse/HBASE-3859
> Project: HBase
> Issue Type: Improvement
> Components: metrics, regionserver
> Affects Versions: 0.90.2
> Reporter: Benoit Sigoure
> Assignee: Mubarak Seyed
> Priority: Minor
> Attachments: HBASE-3859.trunk.v1.patch
>
>
> Whenever a Scanner lease expires, the RegionServer will close it
> automatically and log a message to complain. I would like the RegionServer
> to increment a counter whenever this happens and expose this counter through
> the metrics system, so we can plug this into our monitoring system (OpenTSDB)
> and keep track of how frequently this happens. It's not supposed to happen
> frequently so it's good to keep an eye on it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira