[ https://issues.apache.org/jira/browse/SOLR-3586?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steffen Moldenhauer updated SOLR-3586: -------------------------------------- Attachment: SOLR-3586.patch we were able to resolve the issue with the attached patch. The patch adds an CloseHook to the SpellCheckComponent that calls new close() method at SolrSpellChecker, implementations override the close() to release resources by closing lucene spell checker, index and file > spellchecker directory/files not deleted > ---------------------------------------- > > Key: SOLR-3586 > URL: https://issues.apache.org/jira/browse/SOLR-3586 > Project: Solr > Issue Type: Bug > Components: spellchecker > Affects Versions: 3.6 > Environment: win7, tomcat6 > Reporter: Robert Duenger > Attachments: SOLR-3586.patch > > > After unloading (incl. delete flag) a core, some files of the > spellchecker-directory remain and have a lock. I have to shutdown solr to get > them released and to be able to delete them manually. > files which remain in spellchecker1-directory: > _0.fdt, .fdx, .frq, .nrm, .tis > used config: > - <lockType>simple</lockType> > <lst name="spellchecker"> > <str name="name">default</str> > <str name="field">_spell</str> > <str name="spellcheckIndexDir">./spellchecker1</str> > </lst> > <lst name="spellchecker"> > <str name="classname">solr.FileBasedSpellChecker</str> > <str name="name">file</str> > <str name="sourceLocation">spellings.txt</str> > <str name="characterEncoding">UTF-8</str> > <str name="spellcheckIndexDir">./spellcheckerFile</str> > </lst> -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org