dsmiley commented on a change in pull request #580:
URL: https://github.com/apache/solr/pull/580#discussion_r797965685



##########
File path: solr/core/src/test/org/apache/solr/core/TestLazyCores.java
##########
@@ -261,23 +275,16 @@ public void testCachingLimit() throws Exception {
         assertNotNull(o);
       }
 
-
-      // Note decrementing the count when the core is removed from the 
lazyCores list is appropriate, since the
-      // refcount is 1 when constructed. anyone _else_ who's opened up one has 
to close it.
-      core1.close();
-      core2.close();
-      core3.close();
-      core4.close();
-      core5.close();
-      core6.close();
-      core7.close();
-      core8.close();
-      core9.close();
     } finally {
       cc.shutdown();
     }
   }
 
+  private void getCoreAndPutBack(CoreContainer cc, String name) {

Review comment:
       I think of it as taking from a bag and putting back.  The details of 
this are calling "close" to put back but that evokes a sense of truly closing 
it which is inaccurate.  When this method is called, it's not truly going to be 
closed.
   I'll comment on the eviction criteria.




-- 
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: issues-unsubscr...@solr.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to