mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-19 19:14:55 +00:00
We receive the application closing event before we receive the case closed event so we need to ensure that the Solr core is unloaded before we shutdown the server.
This commit is contained in:
parent
d346cb79ef
commit
c85abf121f
@ -513,9 +513,18 @@ public class Server {
|
||||
* Waits for the stop command to finish before returning.
|
||||
*/
|
||||
synchronized void stop() {
|
||||
|
||||
try {
|
||||
// Close any open core before stopping server
|
||||
closeCore();
|
||||
}
|
||||
catch (KeywordSearchModuleException e) {
|
||||
logger.log(Level.WARNING, "Failed to close core: ", e); //NON-NLS
|
||||
}
|
||||
|
||||
try {
|
||||
logger.log(Level.INFO, "Stopping Solr server from: " + solrFolder.getAbsolutePath()); //NON-NLS
|
||||
|
||||
//try graceful shutdown
|
||||
final String [] SOLR_STOP_CMD = {
|
||||
javaPath,
|
||||
|
Loading…
x
Reference in New Issue
Block a user