mirror of https://github.com/apache/cassandra
Upgrade Dropwizard Metrics to 4.2.19
patch by Maxim Muzafarov; reviewed by Ekaterina Dimitrova and Stefan Miklosovic for CASSANDRA-14667
This commit is contained in:
parent
eb30005251
commit
f51d9ecbe3
|
|
@ -418,12 +418,12 @@
|
|||
<dependency>
|
||||
<groupId>ch.qos.logback</groupId>
|
||||
<artifactId>logback-core</artifactId>
|
||||
<version>1.2.9</version>
|
||||
<version>1.2.12</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>ch.qos.logback</groupId>
|
||||
<artifactId>logback-classic</artifactId>
|
||||
<version>1.2.9</version>
|
||||
<version>1.2.12</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.core</groupId>
|
||||
|
|
@ -678,17 +678,39 @@
|
|||
<dependency>
|
||||
<groupId>io.dropwizard.metrics</groupId>
|
||||
<artifactId>metrics-core</artifactId>
|
||||
<version>3.1.5</version>
|
||||
<version>4.2.19</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-api</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.dropwizard.metrics</groupId>
|
||||
<artifactId>metrics-jvm</artifactId>
|
||||
<version>3.1.5</version>
|
||||
<version>4.2.19</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-api</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.dropwizard.metrics</groupId>
|
||||
<artifactId>metrics-logback</artifactId>
|
||||
<version>3.1.5</version>
|
||||
<version>4.2.19</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>ch.qos.logback</groupId>
|
||||
<artifactId>logback-core</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>ch.qos.logback</groupId>
|
||||
<artifactId>logback-classic</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.addthis.metrics</groupId>
|
||||
|
|
@ -920,7 +942,7 @@
|
|||
<dependency>
|
||||
<groupId>com.datastax.cassandra</groupId>
|
||||
<artifactId>cassandra-driver-core</artifactId>
|
||||
<version>3.11.0</version>
|
||||
<version>3.11.5</version>
|
||||
<classifier>shaded</classifier>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
5.0-alpha2
|
||||
* Upgrade Dropwizard Metrics to 4.2.19 (CASSANDRA-14667)
|
||||
* Upgrade caffeine cache and fix CIDR permissions cache invalidation (CASSANDRA-18805)
|
||||
* Remove deprecated properties in CompressionParams (CASSANDRA-18742)
|
||||
* Add support for repair coordinator to retry messages that timeout (CASSANDRA-18816)
|
||||
|
|
|
|||
|
|
@ -112,7 +112,6 @@ import org.apache.cassandra.streaming.StreamState;
|
|||
import org.apache.cassandra.streaming.management.StreamStateCompositeData;
|
||||
import org.apache.cassandra.tools.nodetool.formatter.TableBuilder;
|
||||
|
||||
import com.codahale.metrics.JmxReporter;
|
||||
import com.google.common.base.Function;
|
||||
import com.google.common.base.Strings;
|
||||
import com.google.common.collect.HashMultimap;
|
||||
|
|
@ -1833,10 +1832,10 @@ public class NodeProbe implements AutoCloseable
|
|||
case ThreadPoolMetrics.PENDING_TASKS:
|
||||
case ThreadPoolMetrics.COMPLETED_TASKS:
|
||||
case ThreadPoolMetrics.MAX_POOL_SIZE:
|
||||
return JMX.newMBeanProxy(mbeanServerConn, oName, JmxReporter.JmxGaugeMBean.class).getValue();
|
||||
return JMX.newMBeanProxy(mbeanServerConn, oName, CassandraMetricsRegistry.JmxGaugeMBean.class).getValue();
|
||||
case ThreadPoolMetrics.TOTAL_BLOCKED_TASKS:
|
||||
case ThreadPoolMetrics.CURRENTLY_BLOCKED_TASKS:
|
||||
return JMX.newMBeanProxy(mbeanServerConn, oName, JmxReporter.JmxCounterMBean.class).getCount();
|
||||
return JMX.newMBeanProxy(mbeanServerConn, oName, CassandraMetricsRegistry.JmxCounterMBean.class).getCount();
|
||||
default:
|
||||
throw new AssertionError("Unknown ThreadPools metric name " + metricName);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -166,7 +166,7 @@ public class ClientStatsTest
|
|||
tool.assertOnCleanExit();
|
||||
String stdout = tool.getStdout();
|
||||
assertThat(stdout).containsPattern("Address +SSL +Cipher +Protocol +Version +User +Keyspace +Requests +Driver-Name +Driver-Version");
|
||||
assertThat(stdout).containsPattern("/127.0.0.1:[0-9]+ false undefined undefined [0-9]+ +anonymous +[0-9]+ +DataStax Java Driver 3.11.0");
|
||||
assertThat(stdout).containsPattern("/127.0.0.1:[0-9]+ false undefined undefined [0-9]+ +anonymous +[0-9]+ +DataStax Java Driver 3.11.5");
|
||||
assertThat(stdout).contains("Total connected clients: 2");
|
||||
assertThat(stdout).contains("User Connections");
|
||||
assertThat(stdout).contains("anonymous 2");
|
||||
|
|
@ -179,9 +179,9 @@ public class ClientStatsTest
|
|||
tool.assertOnCleanExit();
|
||||
String stdout = tool.getStdout();
|
||||
assertThat(stdout).containsPattern("Address +SSL +Cipher +Protocol +Version +User +Keyspace +Requests +Driver-Name +Driver-Version +Client-Options");
|
||||
assertThat(stdout).containsPattern("/127.0.0.1:[0-9]+ false undefined undefined [0-9]+ +anonymous +[0-9]+ +DataStax Java Driver 3.11.0");
|
||||
assertThat(stdout).containsPattern("/127.0.0.1:[0-9]+ false undefined undefined [0-9]+ +anonymous +[0-9]+ +DataStax Java Driver 3.11.5");
|
||||
assertThat(stdout).containsPattern("DRIVER_NAME=DataStax Java Driver");
|
||||
assertThat(stdout).containsPattern("DRIVER_VERSION=3.11.0");
|
||||
assertThat(stdout).containsPattern("DRIVER_VERSION=3.11.5");
|
||||
assertThat(stdout).containsPattern("CQL_VERSION=3.0.0");
|
||||
assertThat(stdout).contains("Total connected clients: 2");
|
||||
assertThat(stdout).contains("User Connections");
|
||||
|
|
|
|||
Loading…
Reference in New Issue