lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dsmi...@apache.org
Subject lucene-solr:branch_7x: SOLR-12361: Fix test AddBlockUpdateTest.indexSolrInputDocumentsDirectly
Date Tue, 19 Jun 2018 04:02:57 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/branch_7x 959ffb498 -> 31a534945


SOLR-12361: Fix test AddBlockUpdateTest.indexSolrInputDocumentsDirectly

(cherry picked from commit f550850)


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/31a53494
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/31a53494
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/31a53494

Branch: refs/heads/branch_7x
Commit: 31a534945faf44ded1f5673cc44a4817af707d2f
Parents: 959ffb4
Author: David Smiley <dsmiley@apache.org>
Authored: Mon Jun 18 23:59:44 2018 -0400
Committer: David Smiley <dsmiley@apache.org>
Committed: Tue Jun 19 00:02:50 2018 -0400

----------------------------------------------------------------------
 .../src/test/org/apache/solr/update/AddBlockUpdateTest.java    | 6 ------
 1 file changed, 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/31a53494/solr/core/src/test/org/apache/solr/update/AddBlockUpdateTest.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/update/AddBlockUpdateTest.java b/solr/core/src/test/org/apache/solr/update/AddBlockUpdateTest.java
index 0c36e15..1913166 100644
--- a/solr/core/src/test/org/apache/solr/update/AddBlockUpdateTest.java
+++ b/solr/core/src/test/org/apache/solr/update/AddBlockUpdateTest.java
@@ -658,8 +658,6 @@ public class AddBlockUpdateTest extends SolrTestCaseJ4 {
     SolrQueryRequest coreReq = new LocalSolrQueryRequest(h.getCore(), new ModifiableSolrParams());
     AddUpdateCommand updateCmd = new AddUpdateCommand(coreReq);
     for (SolrInputDocument doc: docs) {
-      long version = getNewClock();
-      updateCmd.setVersion(Math.abs(version));
       updateCmd.solrDoc = doc;
       h.getCore().getUpdateHandler().addDoc(updateCmd);
       updateCmd.clear();
@@ -667,10 +665,6 @@ public class AddBlockUpdateTest extends SolrTestCaseJ4 {
     assertU(commit());
   }
 
-  private long getNewClock() {
-    return h.getCore().getUpdateHandler().getUpdateLog().getVersionInfo().getNewClock();
-  }
-  
   /**
    * Merges two documents like
    * 


Mime
View raw message