diff --git a/solr/core/src/test/org/apache/solr/metrics/SolrMetricManagerTest.java b/solr/core/src/test/org/apache/solr/metrics/SolrMetricManagerTest.java index 5739e53454e..87fc883a55d 100644 --- a/solr/core/src/test/org/apache/solr/metrics/SolrMetricManagerTest.java +++ b/solr/core/src/test/org/apache/solr/metrics/SolrMetricManagerTest.java @@ -192,7 +192,6 @@ public class SolrMetricManagerTest extends SolrTestCaseJ4 { @Test public void testReporters() throws Exception { - Random r = random(); SolrResourceLoader loader = new SolrResourceLoader(); SolrMetricManager metricManager = new SolrMetricManager(); diff --git a/solr/core/src/test/org/apache/solr/metrics/reporters/solr/SolrCloudReportersTest.java b/solr/core/src/test/org/apache/solr/metrics/reporters/solr/SolrCloudReportersTest.java index 41848178ab2..5b6dc099905 100644 --- a/solr/core/src/test/org/apache/solr/metrics/reporters/solr/SolrCloudReportersTest.java +++ b/solr/core/src/test/org/apache/solr/metrics/reporters/solr/SolrCloudReportersTest.java @@ -77,7 +77,6 @@ public class SolrCloudReportersTest extends SolrCloudTestCase { String leaderRegistryName = core.getCoreMetricManager().getLeaderRegistryName(); String coreName = core.getName(); String collectionName = core.getCoreDescriptor().getCollectionName(); - String coreNodeName = core.getCoreDescriptor().getCloudDescriptor().getCoreNodeName(); String replicaName = coreName.substring(coreName.indexOf("_replica_") + 1); String shardId = core.getCoreDescriptor().getCloudDescriptor().getShardId();