sigram commented on code in PR #4902:
URL: https://github.com/apache/solr/pull/4902#discussion_r4004710723


##########
solr/core/src/test/org/apache/solr/search/SolrIndexSearcherTest.java:
##########
@@ -198,6 +206,15 @@ public void testHighMinExactCountWithQueryResultCache() 
throws IOException {
             });
   }
 
+  public void testReplacedSearcherCanBeGarbageCollected() throws Exception {
+    WeakReference<SolrIndexSearcher> replacedSearcher = 
registerCurrentSearcherForGcCheck();
+
+    assertU(adoc("id", "1000000", "field1_s", "foo"));

Review Comment:
   This doc needs to be deleted at the end of the test to avoid index pollution 
for other tests.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to