Adrien Grand created LUCENE-8203:

             Summary: Windows failures when removing test directories
                 Key: LUCENE-8203
             Project: Lucene - Core
          Issue Type: Test
            Reporter: Adrien Grand

I was looking at Lucene failures of Policeman Jenkins' Windows job 
( and they all fail  
when cleaning up temporary files/dirs used for testing, eg.

[junit4] ERROR   0.00s J1 | TestBoolean2 (suite) <<<
   [junit4]    > Throwable #1: Could not remove the 
following files (in the order of attempts):
   [junit4]    >    
   [junit4]    >    
   [junit4]    >        at 
   [junit4]    >        at org.apache.lucene.util.IOUtils.rm(
   [junit4]    >        at

Has anyone ideas what the problem is? At first sight it looks:
 - not due to unclosed index inputs or MockDirectoryWrapper would barf too
 - not related to the unmap hack since we have failures on tests that do not 
use MmapDirectory at all like TestNIOFSDirectory
 - not due to the fact that we do not release resources in a try/finally or 
try-with-resources block or junit would report the exception that prevented the 
dir/input from being closed as well

It's also surprising how it sometimes fails with a DirectoryNotEmptyException 
without reporting issues about deleting inner files of the directory.

I don't have much background on this issue so I could easily have missed 

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to