[ 
https://issues.apache.org/jira/browse/SOLR-7667?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14584665#comment-14584665
 ] 

Shawn Heisey commented on SOLR-7667:
------------------------------------

bq. While I share this philosophy in general, it's doesn't really make sense 
here... Consider specifically how a system can get in a situation like this:

That was a scenario I had not considered, and that is a good reason to not fail 
the way I described.  Doing so would not conform to another design philosophy 
-- the "principle of least surprise."

During startup, if cores have been asked to load that exceed the transient 
size, it could be handled one of two ways:

* Treat them just like a manual core load -- and unload one of the cores that 
got loaded previously.
* Skip the automatic load entirely, rather than do the partial load that causes 
the buggy state.

bq. unless you're going to fail fast and hard in the CoreAdmin and not even let 
a new core be created with loadOnStartup=true unless you count all the 
loadOnStartup=true cores

Another great idea from Hoss.  Fail core creation with a useful error message 
in the exception.

bq. By the way, can this fix back port the solr 4.10.3 ?

We can certainly backport the fix to the 4_10 branch, but this is a problem 
with a simple workaround, so I don't think it will lead to an actual 4.10.3 
release.

Are there any errors or warnings in the log when this problem happens?  If 
there are, they should be documented here so that others can find this issue by 
searching for those messages.


> If more cores are loaded at startup than the transient core size, cores 
> become unavailable.
> -------------------------------------------------------------------------------------------
>
>                 Key: SOLR-7667
>                 URL: https://issues.apache.org/jira/browse/SOLR-7667
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 5.2.1, Trunk
>            Reporter: Erick Erickson
>            Assignee: Erick Erickson
>
> Edwin Lee from the user's list caught this, the original post is titled 
> "loadOnStartup & transientCoreSize & BUG Report on CoreContainer.java"
> Nice catch Edwin!
> More details to follow:



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to