lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject lucene-solr:branch_7x: remove test-specific code in NRT replicator
Date Fri, 01 Sep 2017 13:25:00 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/branch_7x 04676d274 -> a205a8622


remove test-specific code in NRT replicator


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

Branch: refs/heads/branch_7x
Commit: a205a86228894176cf2407b0fc8beff8498fadd1
Parents: 04676d2
Author: Mike McCandless <mikemccand@apache.org>
Authored: Fri Sep 1 09:24:14 2017 -0400
Committer: Mike McCandless <mikemccand@apache.org>
Committed: Fri Sep 1 09:24:37 2017 -0400

----------------------------------------------------------------------
 .../org/apache/lucene/replicator/nrt/PrimaryNode.java     | 10 ----------
 .../org/apache/lucene/replicator/nrt/ReplicaNode.java     |  9 ---------
 2 files changed, 19 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/a205a862/lucene/replicator/src/java/org/apache/lucene/replicator/nrt/PrimaryNode.java
----------------------------------------------------------------------
diff --git a/lucene/replicator/src/java/org/apache/lucene/replicator/nrt/PrimaryNode.java
b/lucene/replicator/src/java/org/apache/lucene/replicator/nrt/PrimaryNode.java
index ee770cb..290195f 100644
--- a/lucene/replicator/src/java/org/apache/lucene/replicator/nrt/PrimaryNode.java
+++ b/lucene/replicator/src/java/org/apache/lucene/replicator/nrt/PrimaryNode.java
@@ -113,14 +113,6 @@ public abstract class PrimaryNode extends Node {
       setCurrentInfos(Collections.<String>emptySet());
       message("init: infos version=" + curInfos.getVersion());
 
-      IndexSearcher s = mgr.acquire();
-      try {
-        // TODO: this is test code specific!!
-        message("init: marker count: " + s.count(new TermQuery(new Term("marker", "marker"))));
-      } finally {
-        mgr.release(s);
-      }
-
     } catch (Throwable t) {
       message("init: exception");
       t.printStackTrace(printStream);
@@ -231,8 +223,6 @@ public abstract class PrimaryNode extends Node {
     try {
       searcher = mgr.acquire();
       infos = ((StandardDirectoryReader) searcher.getIndexReader()).getSegmentInfos();
-      // TODO: this is test code specific!!
-      message("setCurrentInfos: marker count: " + searcher.count(new TermQuery(new Term("marker",
"marker"))) + " version=" + infos.getVersion() + " searcher=" + searcher);
     } finally {
       if (searcher != null) {
         mgr.release(searcher);

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/a205a862/lucene/replicator/src/java/org/apache/lucene/replicator/nrt/ReplicaNode.java
----------------------------------------------------------------------
diff --git a/lucene/replicator/src/java/org/apache/lucene/replicator/nrt/ReplicaNode.java
b/lucene/replicator/src/java/org/apache/lucene/replicator/nrt/ReplicaNode.java
index 2567fd9..d546c17 100644
--- a/lucene/replicator/src/java/org/apache/lucene/replicator/nrt/ReplicaNode.java
+++ b/lucene/replicator/src/java/org/apache/lucene/replicator/nrt/ReplicaNode.java
@@ -287,15 +287,6 @@ public abstract class ReplicaNode extends Node {
       // Finally, we are open for business, since our index now "agrees" with the primary:
       mgr = new SegmentInfosSearcherManager(dir, this, infos, searcherFactory);
 
-      IndexSearcher searcher = mgr.acquire();
-      try {
-        // TODO: this is test specific:
-        int hitCount = searcher.count(new TermQuery(new Term("marker", "marker")));
-        message("top: marker count=" + hitCount + " version=" + ((DirectoryReader) searcher.getIndexReader()).getVersion());
-      } finally {
-        mgr.release(searcher);
-      }
-
       // Must commit after init mgr:
       if (doCommit) {
         // Very important to commit what we just sync'd over, because we removed the pre-existing
commit point above if we had to


Mime
View raw message