[ 
https://issues.apache.org/jira/browse/SOLR-3586?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13560683#comment-13560683
 ] 

Nick Veenhof edited comment on SOLR-3586 at 1/23/13 1:56 PM:
-------------------------------------------------------------

I'm not 100% certain if this is the same bug but this affects us also. 
We are adding cores from within automated tests inside a webapplication. The 
core data and conf folder are created within a temp folder of this application. 
Whenever the tests are finished, the webapplication will try to remove the 
temporary folder and it will fail because solr does not clean up the 
spellchecker folder.

{code}
unlink(.../data/spellchecker/segments.gen): Permission denied
unlink(.../data/spellchecker/segments_1): Permission denied
rmdir(../data/spellchecker): Permission denied
{code}
                
      was (Author: nick.veenhof):
    This affects us also, we are adding cores from within automated tests 
inside a webapplication. The core data and conf folder are created within a 
temp folder of this application. Whenever the tests are finished, the 
webapplication will try to remove the temporary folder and it will fail because 
solr does not clean up the spellchecker folder.

{code}
unlink(.../data/spellchecker/segments.gen): Permission denied
unlink(.../data/spellchecker/segments_1): Permission denied
rmdir(../data/spellchecker): Permission denied
{code}
                  
> 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
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

Reply via email to