Skip to content

Apache Lucene open-source search software

SOLR-9310: addressing the test failures in jenkins

Noble Paulc6c3166bf5d2
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 5d8654c12b2..ddc023f2c36 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);
}
}