Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P3893
Masterwork From Distant Lands
Active
Public
Actions
Authored by
Eevans
on Aug 25 2016, 9:19 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Tags
None
Referenced Files
F4400953: Masterwork From Distant Lands
Aug 25 2016, 9:19 PM
2016-08-25 21:19:34 (UTC+0)
Subscribers
None
#! /bin/sh /usr/share/dpatch/dpatch-run
## 100reinstate_exp_decaying_resv.dpatch by Eric Evans <eevans@wikimedia.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.
@DPATCH@
diff --git a/src/java/org/apache/cassandra/metrics/CassandraMetricsRegistry.java b/src/java/org/apache/cassandra/metrics/CassandraMetricsRegistry.java
index 6fdb2ff..308a65b
100644
--- a/src/java/org/apache/cassandra/metrics/CassandraMetricsRegistry.java
+++ b/src/java/org/apache/cassandra/metrics/CassandraMetricsRegistry.java
@@ -60,7 +60,7 @@ public class CassandraMetricsRegistry extends MetricRegistry
public Histogram histogram
(
MetricName name, boolean considerZeroes
)
{
- Histogram
histogram
=
register
(
name, new ClearableHistogram
(
new EstimatedHistogramReservoir
(
considerZeroes
)))
;
+ Histogram
histogram
=
register
(
name, new Histogram
(
new ExponentiallyDecayingReservoir
()))
;
registerMBean
(
histogram, name.getMBeanName
())
;
return
histogram
;
@@ -68,7 +68,7 @@ public class CassandraMetricsRegistry extends MetricRegistry
public Timer timer
(
MetricName name
)
{
- Timer
timer
=
register
(
name, new Timer
(
new EstimatedHistogramReservoir
(
false
)))
;
+ Timer
timer
=
register
(
name, new Timer
(
new ExponentiallyDecayingReservoir
()))
;
registerMBean
(
timer, name.getMBeanName
())
;
return
timer
;
Event Timeline
Eevans
edited the content of this paste.
(Show Details)
Aug 25 2016, 9:19 PM
2016-08-25 21:19:34 (UTC+0)
Eevans
changed the title of this paste from untitled to
Masterwork From Distant Lands
.
Eevans
mentioned this in
T137474: Investigate lack of recency bias in Cassandra histogram metrics
.
Aug 25 2016, 9:39 PM
2016-08-25 21:39:32 (UTC+0)
reosarevok
mentioned this in
T214893: P6216 (copyright) maalidele
.
Jan 29 2019, 9:44 AM
2019-01-29 09:44:22 (UTC+0)
Log In to Comment