SOLR-13450: Backport the fix from CloudHttp2SolrClientTest

This commit is contained in:
Cao Manh Dat 2019-05-29 16:55:58 +01:00
parent 90e0d1eba1
commit 43397ff0a2
1 changed files with 2 additions and 0 deletions

View File

@ -892,6 +892,8 @@ public class CloudSolrClientTest extends SolrCloudTestCase {
queryWithPreferReplicaTypes(getRandomClient(), "TLOG|PULL", true, collectionName);
queryWithPreferReplicaTypes(getRandomClient(), "NRT", false, collectionName);
queryWithPreferReplicaTypes(getRandomClient(), "NRT|PULL", true, collectionName);
CollectionAdminRequest.deleteCollection(collectionName)
.processAndWait(cluster.getSolrClient(), TIMEOUT);
}
private void queryWithPreferReplicaTypes(CloudSolrClient cloudClient,