You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by no...@apache.org on 2016/08/23 17:39:23 UTC

lucene-solr:branch_6x: SOLR-9310: addressing the test failures in jenkins

Repository: lucene-solr
Updated Branches:
  refs/heads/branch_6x 5d29fd87f -> d9c4c5282


SOLR-9310: addressing the test failures in jenkins


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

Branch: refs/heads/branch_6x
Commit: d9c4c5282a46bc5d3d1a6e4b1586083dc8970837
Parents: 5d29fd8
Author: Noble Paul <no...@apache.org>
Authored: Tue Aug 23 23:00:27 2016 +0530
Committer: Noble Paul <no...@apache.org>
Committed: Tue Aug 23 23:09:05 2016 +0530

----------------------------------------------------------------------
 .../apache/solr/handler/component/RealTimeGetComponent.java   | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/d9c4c528/solr/core/src/java/org/apache/solr/handler/component/RealTimeGetComponent.java
----------------------------------------------------------------------
diff --git a/solr/core/src/java/org/apache/solr/handler/component/RealTimeGetComponent.java b/solr/core/src/java/org/apache/solr/handler/component/RealTimeGetComponent.java
index 40a46c3..510f264 100644
--- a/solr/core/src/java/org/apache/solr/handler/component/RealTimeGetComponent.java
+++ b/solr/core/src/java/org/apache/solr/handler/component/RealTimeGetComponent.java
@@ -627,20 +627,15 @@ public class RealTimeGetComponent extends SearchComponent
     UpdateLog ulog = req.getCore().getUpdateHandler().getUpdateLog();
     if (ulog == null) return;
 
-    //get all available versions by default
-    long maxVersion = Long.MAX_VALUE;
     // get fingerprint first as it will cause a soft commit
     // and would avoid mismatch if documents are being actively index especially during PeerSync
     if (doFingerprint) {
       IndexFingerprint fingerprint = IndexFingerprint.getFingerprint(req.getCore(), Long.MAX_VALUE);
       rb.rsp.add("fingerprint", fingerprint.toObject());
-      // if fingerprint is calculated, it makes sense to get only those versions
-      // which were used in computing the the fingerprint
-      maxVersion = fingerprint.getMaxVersionEncountered();
     }
 
     try (UpdateLog.RecentUpdates recentUpdates = ulog.getRecentUpdates()) {
-      List<Long> versions = recentUpdates.getVersions(nVersions, maxVersion);
+      List<Long> versions = recentUpdates.getVersions(nVersions);
       rb.rsp.add("versions", versions);
     }
   }