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:30:42 UTC

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

Repository: lucene-solr
Updated Branches:
  refs/heads/master 43ca5078b -> c6c3166bf


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/c6c3166b
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/c6c3166b
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/c6c3166b

Branch: refs/heads/master
Commit: c6c3166bf5d28922bb3639ac9da3912aab85f520
Parents: 43ca507
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:00:27 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/c6c3166b/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 5d8654c..ddc023f 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);
     }
   }