SOLR-11469: forbidden API

This commit is contained in:
Noble Paul 2017-10-25 18:10:53 +10:30
parent 42717d5f4b
commit f47523d05b
1 changed files with 2 additions and 1 deletions

View File

@ -19,6 +19,7 @@ package org.apache.solr.cloud;
import java.io.IOException;
import java.util.List;
import java.util.Locale;
import java.util.concurrent.TimeUnit;
import org.apache.solr.client.solrj.SolrClient;
@ -78,7 +79,7 @@ public class LeaderElectionContextKeyTest extends SolrCloudTestCase {
for (int i = 1; i <= 2; i++) {
String coll1ShardiLeader = clusterState.getCollection(TEST_COLLECTION_1).getLeader("shard"+i).getName();
String coll2ShardiLeader = clusterState.getCollection(TEST_COLLECTION_2).getLeader("shard"+i).getName();
String assertMss = String.format("Expect %s and %s each have a replica with same name on shard %s",
String assertMss = String.format(Locale.ROOT, "Expect %s and %s each have a replica with same name on shard %s",
coll1ShardiLeader, coll2ShardiLeader, "shard"+i);
assertEquals(
assertMss,