bruno-roustant commented on code in PR #1155:
URL: https://github.com/apache/solr/pull/1155#discussion_r1048676693


##########
solr/core/src/java/org/apache/solr/core/TransientSolrCoreCacheDefault.java:
##########
@@ -47,6 +49,14 @@ public class TransientSolrCoreCacheDefault extends 
TransientSolrCoreCache {
    */
   protected final Cache<String, SolrCore> transientCores;
 
+  /**
+   * This explicitly models capacity overflow of transientCores with cores 
that are still in use. A
+   * cores cache which holds cores evicted from transientCores because of 
limited size but which
+   * shall remain cached because they are still referenced or because they are 
part of an ongoing
+   * operation (pending ops).
+   */
+  protected final Cache<String, SolrCore> overflowCores;

Review Comment:
   Ok. So I propose that this PR keeps the overflowCore, but changes its type 
to a Map<String, SolrCore> (unlimited size) instead of a Cache.
   This way we don't block the performance improvement with the read&write 
locks. On the other hand we temporary lose the transient core cache size limit, 
but I volunteer to work on a separate Jira issue to redesign the transient core 
cache. What is your opinion @dsmiley?



-- 
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