diff --git a/CHANGES.txt b/CHANGES.txt index e752f095cf..ada218a72f 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,4 +1,5 @@ 4.0-beta5 + * Mark StreamingMetrics.ActiveOutboundStreams as deprecated (CASSANDRA-11174) * Increase the cqlsh version number (CASSANDRA-16509) * Fix the CQL generated for the views.where_clause column when some identifiers require quoting (CASSANDRA-16479) * Send FAILED_SESSION_MSG on shutdown and on in-progress repairs during startup (CASSANDRA-16425) diff --git a/NEWS.txt b/NEWS.txt index d1ca9a5505..a35c4c5310 100644 --- a/NEWS.txt +++ b/NEWS.txt @@ -288,6 +288,9 @@ Upgrading Deprecation ----------- + - The JMX MBean org.apache.cassandra.metrics:type=Streaming,name=ActiveOutboundStreams has been + deprecated and will be removed in a subsequent major version. This metric was not updated since several version + already. - The JMX MBean org.apache.cassandra.db:type=BlacklistedDirectories has been deprecated in favor of org.apache.cassandra.db:type=DisallowedDirectories and will be removed in a subsequent major version. diff --git a/src/java/org/apache/cassandra/metrics/StreamingMetrics.java b/src/java/org/apache/cassandra/metrics/StreamingMetrics.java index 756354f39f..54df23357e 100644 --- a/src/java/org/apache/cassandra/metrics/StreamingMetrics.java +++ b/src/java/org/apache/cassandra/metrics/StreamingMetrics.java @@ -37,6 +37,7 @@ public class StreamingMetrics private static final ConcurrentMap instances = new NonBlockingHashMap<>(); + @Deprecated public static final Counter activeStreamsOutbound = Metrics.counter(DefaultNameFactory.createMetricName(TYPE_NAME, "ActiveOutboundStreams", null)); public static final Counter totalIncomingBytes = Metrics.counter(DefaultNameFactory.createMetricName(TYPE_NAME, "TotalIncomingBytes", null)); public static final Counter totalOutgoingBytes = Metrics.counter(DefaultNameFactory.createMetricName(TYPE_NAME, "TotalOutgoingBytes", null));