You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by is...@apache.org on 2020/08/15 02:39:31 UTC
[lucene-solr] branch jira/solr-13350-new updated: SOLR-13350:
Bringing back the assert that was disabled to wordaround tests
This is an automated email from the ASF dual-hosted git repository.
ishan pushed a commit to branch jira/solr-13350-new
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
The following commit(s) were added to refs/heads/jira/solr-13350-new by this push:
new 84dec14 SOLR-13350: Bringing back the assert that was disabled to wordaround tests
84dec14 is described below
commit 84dec144b1fa40425920a158cbdb3b8c108a3378
Author: Ishan Chattopadhyaya <is...@apache.org>
AuthorDate: Sat Aug 15 08:09:14 2020 +0530
SOLR-13350: Bringing back the assert that was disabled to wordaround tests
---
solr/core/src/java/org/apache/solr/search/SolrIndexSearcher.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/solr/core/src/java/org/apache/solr/search/SolrIndexSearcher.java b/solr/core/src/java/org/apache/solr/search/SolrIndexSearcher.java
index 663d3c9..76d48bc 100644
--- a/solr/core/src/java/org/apache/solr/search/SolrIndexSearcher.java
+++ b/solr/core/src/java/org/apache/solr/search/SolrIndexSearcher.java
@@ -1818,7 +1818,7 @@ public class SolrIndexSearcher extends IndexSearcher implements Closeable, SolrI
CollectorManagerResult result = searchCollectorManagers(len, cmd, query, true, true, true);
set = result.docSet;
totalHits = result.totalHits;
- //assert (totalHits == set.size()) || qr.isPartialResults();
+ assert (totalHits == set.size()) || qr.isPartialResults();
topDocs = result.topDocs;
maxScore = result.maxScore;
}