Mark StreamingMetrics.ActiveOutboundStreams as deprecated

patch by Benjamin Lerer; reviewed by Mick Semb Wever for CASSANDRA-11174
This commit is contained in:
Benjamin Lerer 2021-03-17 11:33:29 +01:00 committed by Mick Semb Wever
parent ecc7c2fc39
commit 28e8632c97
No known key found for this signature in database
GPG Key ID: E91335D77E3E87CB
3 changed files with 5 additions and 0 deletions

View File

@ -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)

View File

@ -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.

View File

@ -37,6 +37,7 @@ public class StreamingMetrics
private static final ConcurrentMap<InetAddressAndPort, StreamingMetrics> 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));