Ignore:
Timestamp:
2014-10-08T20:18:48+13:00 (10 years ago)
Author:
ak19
Message:

Overlooked a very important commit, but with corrections: solr cores should not be removed for solr/lucene 4.7.2 as they were for lucene/solr 3.3.0. However, all the solr cores do need to be shutdown on cleanUp() in order to not have the running GS3 server hold a lock on any of the cores, as this will prevent the GS3 tomcat from stopping fully, with part of tomcat still running in the background even if it looks like tomcat has stopped.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs3-extensions/solr/trunk/src/src/java/org/greenstone/gsdl3/service/SolrSearch.java

    r29142 r29355  
    7979        solr_server.clear();
    8080
     81        // 2. Need GS3 server (tomcat) to release the cores, else a part of tomcat is still running in the background
     82        // on ant stop, holding a lock on the cores. Doing shutdown() preserves core descriptions in solr.xml
     83        solr_cores.shutdown();
     84        solr_cores = null;
     85
     86        // For solr 3.3.0's jetty server, but not for solr 4.7.2's jetty server
     87        /*
    8188        // 2. Remove all SolrCores in the CoreContainer (solr_cores) that are specific to this collection
    8289        String collection_core_name_prefix = getCollectionCoreNamePrefix();
     
    123130            }
    124131        }
    125    
     132        */
    126133    }
    127134
     
    146153            File solr_xml = new File( solr_home,"solr.xml" );
    147154           
    148             //solr_cores.load(solr_home_str,solr_xml);         
     155            //solr_cores.load(solr_home_str,solr_xml);
    149156            solr_cores.load();
    150157        } catch (Exception e) {
Note: See TracChangeset for help on using the changeset viewer.