Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downgrade metrics library #1208

Merged
merged 1 commit into from
Jun 26, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
*/
package com.github.ambry.cloud;

import com.codahale.metrics.JmxReporter;
import com.codahale.metrics.MetricRegistry;
import com.codahale.metrics.jmx.JmxReporter;
import com.github.ambry.clustermap.ClusterAgentsFactory;
import com.github.ambry.clustermap.ClusterMap;
import com.github.ambry.clustermap.DataNodeId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
import com.codahale.metrics.Counter;
import com.codahale.metrics.Gauge;
import com.codahale.metrics.Histogram;
import com.codahale.metrics.JmxReporter;
import com.codahale.metrics.MetricRegistry;
import com.codahale.metrics.jmx.JmxReporter;
import com.github.ambry.account.AccountService;
import com.github.ambry.account.AccountServiceFactory;
import com.github.ambry.clustermap.ClusterMap;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
*/
package com.github.ambry.server;

import com.codahale.metrics.JmxReporter;
import com.codahale.metrics.MetricRegistry;
import com.codahale.metrics.jmx.JmxReporter;
import com.github.ambry.clustermap.ClusterAgentsFactory;
import com.github.ambry.clustermap.ClusterMap;
import com.github.ambry.clustermap.ClusterParticipant;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
*/
package com.github.ambry.store;

import com.codahale.metrics.JmxReporter;
import com.codahale.metrics.MetricRegistry;
import com.codahale.metrics.Timer;
import com.codahale.metrics.jmx.JmxReporter;
import com.github.ambry.clustermap.ClusterAgentsFactory;
import com.github.ambry.clustermap.ClusterMap;
import com.github.ambry.commons.BlobIdFactory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
*/
package com.github.ambry.store;

import com.codahale.metrics.JmxReporter;
import com.codahale.metrics.MetricRegistry;
import com.codahale.metrics.Timer;
import com.codahale.metrics.jmx.JmxReporter;
import com.github.ambry.clustermap.ClusterAgentsFactory;
import com.github.ambry.clustermap.ClusterMap;
import com.github.ambry.config.ClusterMapConfig;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@

import com.codahale.metrics.Counter;
import com.codahale.metrics.Histogram;
import com.codahale.metrics.JmxReporter;
import com.codahale.metrics.Meter;
import com.codahale.metrics.MetricRegistry;
import com.codahale.metrics.Snapshot;
import com.codahale.metrics.jmx.JmxReporter;
import com.github.ambry.commons.SSLFactory;
import com.github.ambry.config.SSLConfig;
import com.github.ambry.config.VerifiableProperties;
Expand Down
30 changes: 13 additions & 17 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ subprojects {

project(':ambry-utils') {
dependencies {
compile "io.dropwizard.metrics:metrics-core:$metricsVersion"
compile "com.codahale.metrics:metrics-core:$metricsVersion"
compile "commons-codec:commons-codec:$commonsVersion"
compile "org.json:json:$jsonVersion"
compile "net.sf.jopt-simple:jopt-simple:$joptSimpleVersion"
Expand All @@ -105,7 +105,7 @@ project(':ambry-api') {
dependencies {
compile project(':ambry-utils')
compile "org.apache.helix:helix-core:$helixVersion"
compile "io.dropwizard.metrics:metrics-core:$metricsVersion"
compile "com.codahale.metrics:metrics-core:$metricsVersion"
compile "org.codehaus.jackson:jackson-core-asl:$jacksonVersion"
compile "org.codehaus.jackson:jackson-mapper-asl:$jacksonVersion"
testCompile project(':ambry-clustermap')
Expand All @@ -119,7 +119,7 @@ project(':ambry-account') {
project(':ambry-utils'),
project(':ambry-commons')
compile "org.apache.helix:helix-core:$helixVersion"
compile "io.dropwizard.metrics:metrics-core:$metricsVersion"
compile "com.codahale.metrics:metrics-core:$metricsVersion"
compile "org.json:json:$jsonVersion"
testCompile project(':ambry-utils').sourceSets.test.output
testCompile project(':ambry-commons').sourceSets.test.output
Expand All @@ -132,7 +132,7 @@ project(':ambry-clustermap') {
compile project(':ambry-api'),
project(':ambry-utils')
compile "org.apache.helix:helix-core:$helixVersion"
compile "io.dropwizard.metrics:metrics-core:$metricsVersion"
compile "com.codahale.metrics:metrics-core:$metricsVersion"
compile "org.json:json:$jsonVersion"
testCompile project(':ambry-commons')
testCompile project(':ambry-utils').sourceSets.test.output
Expand All @@ -158,7 +158,7 @@ project(':ambry-network') {
project(':ambry-utils'),
project(':ambry-commons'),
project(':ambry-clustermap')
compile "io.dropwizard.metrics:metrics-core:$metricsVersion"
compile "com.codahale.metrics:metrics-core:$metricsVersion"
testCompile project(':ambry-utils').sourceSets.test.output
testCompile project(':ambry-commons').sourceSets.test.output
testCompile project(':ambry-clustermap').sourceSets.test.output
Expand All @@ -176,8 +176,7 @@ project(':ambry-server') {
project(':ambry-store'),
project(':ambry-utils'),
project(':ambry-replication')
compile "io.dropwizard.metrics:metrics-core:$metricsVersion"
compile "io.dropwizard.metrics:metrics-jmx:$metricsVersion"
compile "com.codahale.metrics:metrics-core:$metricsVersion"
testCompile project(':ambry-router')
testCompile project(':ambry-cloud')
testCompile project(':ambry-cloud').sourceSets.test.output
Expand All @@ -196,7 +195,7 @@ project(':ambry-store') {
dependencies {
compile project(':ambry-api'),
project(':ambry-utils')
compile "io.dropwizard.metrics:metrics-core:$metricsVersion"
compile "com.codahale.metrics:metrics-core:$metricsVersion"
compile "net.smacke:jaydio:$jaydioVersion"
testCompile project(':ambry-clustermap')
testCompile project(':ambry-clustermap').sourceSets.test.output
Expand All @@ -209,7 +208,7 @@ project(':ambry-messageformat') {
dependencies {
compile project(':ambry-api'),
project(':ambry-utils')
compile "io.dropwizard.metrics:metrics-core:$metricsVersion"
compile "com.codahale.metrics:metrics-core:$metricsVersion"
testCompile project(':ambry-api').sourceSets.test.output
testCompile project(':ambry-utils').sourceSets.test.output
}
Expand All @@ -223,7 +222,7 @@ project(':ambry-replication') {
project(':ambry-commons'),
project(':ambry-protocol'),
project(':ambry-network')
compile "io.dropwizard.metrics:metrics-core:$metricsVersion"
compile "com.codahale.metrics:metrics-core:$metricsVersion"
testCompile project(':ambry-clustermap').sourceSets.test.output
testCompile project(':ambry-api').sourceSets.test.output
testCompile project(':ambry-utils').sourceSets.test.output
Expand All @@ -240,7 +239,6 @@ project(':ambry-tools') {
project(':ambry-server'),
project(':ambry-rest'),
project(':ambry-frontend')
compile "io.dropwizard.metrics:metrics-jmx:$metricsVersion"
compile "net.sf.jopt-simple:jopt-simple:$joptSimpleVersion"
testCompile project(':ambry-clustermap').sourceSets.test.output
testCompile project(':ambry-account').sourceSets.test.output
Expand Down Expand Up @@ -271,8 +269,7 @@ project(':ambry-rest') {
compile project(':ambry-api'),
project(':ambry-utils'),
project(':ambry-commons')
compile "io.dropwizard.metrics:metrics-core:$metricsVersion"
compile "io.dropwizard.metrics:metrics-jmx:$metricsVersion"
compile "com.codahale.metrics:metrics-core:$metricsVersion"
compile "net.sf.jopt-simple:jopt-simple:$joptSimpleVersion"
compile "io.netty:netty-all:$nettyVersion"
compile "io.netty:netty-tcnative-boringssl-static:$nettyTcnativeVersion"
Expand All @@ -298,7 +295,7 @@ project(':ambry-router') {
project(':ambry-messageformat'),
project(':ambry-protocol'),
project(':ambry-network')
compile "io.dropwizard.metrics:metrics-core:$metricsVersion"
compile "com.codahale.metrics:metrics-core:$metricsVersion"
compile "org.bouncycastle:bcpkix-jdk15on:$bouncycastleVersion"
testCompile project(':ambry-api').sourceSets.test.output
testCompile project(':ambry-clustermap').sourceSets.test.output
Expand All @@ -318,7 +315,7 @@ project(':ambry-frontend') {
project(':ambry-commons'),
project(':ambry-rest'),
project(':ambry-router')
compile "io.dropwizard.metrics:metrics-core:$metricsVersion"
compile "com.codahale.metrics:metrics-core:$metricsVersion"
testCompile project(':ambry-api').sourceSets.test.output
testCompile project(':ambry-account').sourceSets.test.output
testCompile project(':ambry-clustermap').sourceSets.test.output
Expand All @@ -338,8 +335,7 @@ project(':ambry-cloud') {
project(':ambry-commons'),
project(':ambry-replication'),
project(':ambry-router')
compile "io.dropwizard.metrics:metrics-core:$metricsVersion"
compile "io.dropwizard.metrics:metrics-jmx:$metricsVersion"
compile "com.codahale.metrics:metrics-core:$metricsVersion"
compile "com.microsoft.azure:azure-storage:$azureStorageVersion"
compile "com.microsoft.azure:azure-documentdb:$azureDocumentDbVersion"
testCompile project(':ambry-api').sourceSets.test.output
Expand Down
2 changes: 1 addition & 1 deletion gradle/dependency-versions.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ext {
joptSimpleVersion = "4.9"
log4jVersion = "1.2.17"
jsonVersion = "20170516"
metricsVersion = "4.0.5"
metricsVersion = "3.0.1"
commonsVersion = "1.9"
bouncycastleVersion = "1.52"
javaxVersion = "3.0.1"
Expand Down