You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Erick Erickson (JIRA)" <ji...@apache.org> on 2017/01/22 04:55:26 UTC

[jira] [Created] (SOLR-10020) CoreAdminHandler silently swallows some errors

Erick Erickson created SOLR-10020:
-------------------------------------

             Summary: CoreAdminHandler silently swallows some errors
                 Key: SOLR-10020
                 URL: https://issues.apache.org/jira/browse/SOLR-10020
             Project: Solr
          Issue Type: Improvement
      Security Level: Public (Default Security Level. Issues are Public)
            Reporter: Erick Erickson


With the setup on SOLR-10006, after removing some index files and starting that Solr instance I tried issuing a REQUESTRECOVERY command and it came back as a success even though nothing actually happened. When the core is accessed, a core init exception is returned by subsequent calls to getCore(). There is no catch block after the try so no error is returned.

Looking through the code I see several other commands that have a similar pattern:
 FORCEPREPAREFORLEADERSHIP_OP
LISTSNAPSHOTS_OP
getCoreStatus

and perhaps others. getCore() can throw an exception, about the only explicit one it does throw is if the core has an initialization error.




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

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