Description
If we were to tackle SOLR-11526 I think we need to start fixing the core admin api's first.
If we are relying on response codes I think we should make the following change and fix all the APIs
interface CoreAdminOp { void execute(CallInfo it) throws Exception; }
To
interface CoreAdminOp { /** * * @param it request/response object * * If the request is invalid throw a SolrException with SolrException.ErrorCode.BAD_REQUEST ( 400 ) * If the execution of the command fails throw a SolrException with SolrException.ErrorCode.SERVER_ERROR ( 500 ) * Add a "error-message" key to the response object with the exception ( this part should be done at the caller of this method so that each operation doesn't need to do the same thing ) */ void execute(CallInfo it); }
cc gerlowskija
Attachments
Attachments
Issue Links
- is duplicated by
-
SOLR-5180 Core admin reload for an invalid core name returns 500 rather than 400 status code
- Resolved
- relates to
-
SOLR-11631 Schema API always has status 0
- Closed