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


##########
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:
   I don't want to block the PR, which primary goal is to separate read and 
write locks, with questions about about how to manage the transient core cache.
   I propose that this PR does not use an overflowCores structure, but simply 
puts back cores to the transientCores cache, as the current code does. I expect 
the ping-pong behavior mentioned above to just be transient, so not a problem?



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