Task #5928
closed
Feature #5810: Implement SOLR-based search
Make sure to start metacat-index web apps when the metacat web apps is start-up during the tomcat startup
Added by Jing Tao over 11 years ago.
Updated over 11 years ago.
Description
Metacat-index will use the distribute system metadata map from the metacat during the startup. So we need to make sure that the metacat web apps is ready when the metacat-index is started.
- Assignee set to Jing Tao
- Target version set to 2.1.0
Is there a way to tell Tomcat which order to load the webapps? I have seen some errors on mn-demo-4 when metacat-index.war is loaded before knb.war (cannot connect to Hazelcast) so this is definitely something to consider. We may need to have Metacat call something in metacat-index to start the listeners and initialize the indexing application.
- Status changed from New to Closed
Added the mechanism to wait some time if the MNode or the Hazelcast is not ready. We also add a maximum attempt control for waiting. If the attempts exceed the maximum number, the regenerating process will stop.
Both the waiting time and maximum attempts can be read from the metacat.properties.
Also available in: Atom
PDF