You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ds...@apache.org on 2016/05/05 13:43:50 UTC
lucene-solr:branch_6x: SOLR-5750: Fix test to specify the collection
on add (cherry picked from commit 18d933e)
Repository: lucene-solr
Updated Branches:
refs/heads/branch_6x 333b105f5 -> 836402788
SOLR-5750: Fix test to specify the collection on add
(cherry picked from commit 18d933e)
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/83640278
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/83640278
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/83640278
Branch: refs/heads/branch_6x
Commit: 83640278860d58ac01a7233ea4a96a49a3b6843d
Parents: 333b105
Author: David Smiley <ds...@apache.org>
Authored: Thu May 5 09:41:47 2016 -0400
Committer: David Smiley <ds...@apache.org>
Committed: Thu May 5 09:43:43 2016 -0400
----------------------------------------------------------------------
.../src/test/org/apache/solr/cloud/TestCloudBackupRestore.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/83640278/solr/core/src/test/org/apache/solr/cloud/TestCloudBackupRestore.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/cloud/TestCloudBackupRestore.java b/solr/core/src/test/org/apache/solr/cloud/TestCloudBackupRestore.java
index 2dba20b..5e35616 100644
--- a/solr/core/src/test/org/apache/solr/cloud/TestCloudBackupRestore.java
+++ b/solr/core/src/test/org/apache/solr/cloud/TestCloudBackupRestore.java
@@ -121,7 +121,6 @@ public class TestCloudBackupRestore extends SolrCloudTestCase {
log.info("Indexing ZERO test docs");
return;
}
- CloudSolrClient client = cluster.getSolrClient();
List<SolrInputDocument> docs = new ArrayList<>(numDocs);
for (int i=0; i<numDocs; i++) {
SolrInputDocument doc = new SolrInputDocument();
@@ -129,7 +128,8 @@ public class TestCloudBackupRestore extends SolrCloudTestCase {
doc.addField("shard_s", "shard" + (1 + random.nextInt(NUM_SHARDS))); // for implicit router
docs.add(doc);
}
- client.add(docs);// batch
+ CloudSolrClient client = cluster.getSolrClient();
+ client.add(collectionName, docs);// batch
client.commit(collectionName);
}