Changeset 29355 for gs3-extensions/solr/trunk/src/src/java/org/greenstone/gsdl3/service/GS2SolrSearch.java
- Timestamp:
- 2014-10-08T20:18:48+13:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gs3-extensions/solr/trunk/src/src/java/org/greenstone/gsdl3/service/GS2SolrSearch.java
r29228 r29355 163 163 super.cleanUp(); 164 164 this.solr_src.cleanUp(); 165 166 167 // 1. clear the map keeping track of the solrcores' EmbeddedSolrServers in this collection 168 solr_core_cache.clear(); 169 170 // 2. For solr 4.7.2., GLI (and ant stop from cmd) is unable to shutdown the tomcat server fully, 171 // IF any collection has been previewed AND if there are any solr collections in the collect folder. 172 // This is because although the GS3 server seems to have stopped running at this stage, running a 173 // `ps aux | grep tomcat` reveals that some part of tomcat is still running. It seems to be still 174 // holding on to the cores. Doing an all_cores.shutdown() here, stops GS3 from hanging on to the cores 175 // while still preserving the core desciptions in web/ext/solr.xml as needed when restarting the GS3 server. 176 177 // Need GS3 server (tomcat) to release the cores, else a part of tomcat is still running in the background 178 // on ant stop, holding a lock on the cores. Doing shutdown() preserves core descriptions in solr.xml 179 all_solr_cores.shutdown(); 180 all_solr_cores = null; 181 182 // For solr 3.3.0's jetty server, but not for solr 4.7.2's jetty server: 183 /* 165 184 166 185 // When cleaning up, not only do we need to empty the solr_core_cache map, but we also need to remove all … … 221 240 } 222 241 } 242 */ 223 243 } 224 244
Note:
See TracChangeset
for help on using the changeset viewer.