mirror of https://github.com/apache/lucene.git
SOLR-3635: display core init failure info (from CoreAdminHandler) in the web UI
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1367362 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f0e5314f22
commit
cb8c322041
|
@ -97,10 +97,11 @@ New Features
|
|||
lib folder. The factories are automatically made available with SPI.
|
||||
(Chris Male, Robert Muir, Uwe Schindler)
|
||||
|
||||
* SOLR-3634: CoreContainer and CoreAdminHandler will now remember and report
|
||||
back information about failures to initialize SolrCores. These failures will
|
||||
be accessible from the STATUS command until they are "reset" by
|
||||
creating/renaming a SolrCore with the same name. (hossman)
|
||||
* SOLR-3634, SOLR-3635: CoreContainer and CoreAdminHandler will now remember
|
||||
and report back information about failures to initialize SolrCores. These
|
||||
failures will be accessible from the web UI and CoreAdminHandler STATUS
|
||||
command until they are "reset" by creating/renaming a SolrCore with the
|
||||
same name. (hossman, steffkes)
|
||||
|
||||
* SOLR-1280: Added commented-out example of the new script update processor
|
||||
to the example configuration. See http://wiki.apache.org/solr/ScriptUpdateProcessor (ehatcher)
|
||||
|
|
|
@ -63,7 +63,15 @@ limitations under the License.
|
|||
</div>
|
||||
|
||||
<div id="main" class="clearfix">
|
||||
|
||||
|
||||
<div id="init-failures">
|
||||
|
||||
<h2>SolrCore Initialization Failures</h2>
|
||||
<ul></ul>
|
||||
<p>Please check your logs for more information</p>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="content-wrapper">
|
||||
<div id="content">
|
||||
|
||||
|
|
|
@ -284,6 +284,38 @@ ul
|
|||
border-color: #66b866;
|
||||
}
|
||||
|
||||
#init-failures
|
||||
{
|
||||
border: 1px solid #f00;
|
||||
display: none;
|
||||
margin-left: 150px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
#main.error #init-failures
|
||||
{
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
#init-failures h2,
|
||||
#init-failures ul,
|
||||
#init-failures p
|
||||
{
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
#init-failures h2
|
||||
{
|
||||
background-color: #f00;
|
||||
color: #fff;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#init-failures p
|
||||
{
|
||||
color: #c0c0c0;
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
#content-wrapper
|
||||
{
|
||||
|
|
|
@ -231,6 +231,29 @@ var solr_admin = function( app_config )
|
|||
.append( core_tpl );
|
||||
}
|
||||
|
||||
if( response.initFailures )
|
||||
{
|
||||
var failures = [];
|
||||
for( var core_name in response.initFailures )
|
||||
{
|
||||
failures.push
|
||||
(
|
||||
'<li>' +
|
||||
'<strong>' + core_name.esc() + ':</strong>' + "\n" +
|
||||
response.initFailures[core_name].esc() + "\n" +
|
||||
'</li>'
|
||||
);
|
||||
}
|
||||
|
||||
if( 0 !== failures.length )
|
||||
{
|
||||
var init_failures = $( '#init-failures' );
|
||||
|
||||
init_failures.show();
|
||||
$( 'ul', init_failures ).html( failures.join( "\n" ) );
|
||||
}
|
||||
}
|
||||
|
||||
if( 0 === core_count )
|
||||
{
|
||||
show_global_error
|
||||
|
|
Loading…
Reference in New Issue