[ 
https://issues.apache.org/jira/browse/LUCENE-5592?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dawid Weiss updated LUCENE-5592:
--------------------------------

    Description: 
As pointed out by Uwe, something dodgy is going on with unremovable file 
detection because they seem to cross a suite boundary, as in.
{code}
// trunk
svn update -r1586300
cd lucene\core
ant clean test -Dtests.directory=SimpleFSDirectory
{code}

{code}
   [junit4] Suite: org.apache.lucene.search.spans.TestSpanSearchEquivalence
...
   [junit4] ERROR   0.00s J1 | TestSpanSearchEquivalence (suite) <<<
   [junit4]    > Throwable #1: java.io.IOException: Could not remove the 
following files (in the order of attempts):
   [junit4]    >    
C:\Work\lucene-solr-svn\trunk\lucene\build\core\test\J1\.\lucene.util.junitcompat.TestFailOnFieldCacheInsanity$Nested1-8886562EBCD30121-001\index-SimpleFSDirectory-001\_0.fdt
   [junit4]    >    
C:\Work\lucene-solr-svn\trunk\lucene\build\core\test\J1\.\lucene.util.junitcompat.TestFailOnFieldCacheInsanity$Nested1-8886562EBCD30121-001\index-SimpleFSDirectory-001\_0_Lucene41_0.doc
   [junit4]    >    
C:\Work\lucene-solr-svn\trunk\lucene\build\core\test\J1\.\lucene.util.junitcompat.TestFailOnFieldCacheInsanity$Nested1-8886562EBCD30121-001\index-SimpleFSDirectory-001\_0_Lucene41_0.tim
   [junit4]    >    
C:\Work\lucene-solr-svn\trunk\lucene\build\core\test\J1\.\lucene.util.junitcompat.TestFailOnFieldCacheInsanity$Nested1-8886562EBCD30121-001\index-SimpleFSDirectory-001
   [junit4]    >    
C:\Work\lucene-solr-svn\trunk\lucene\build\core\test\J1\.\lucene.util.junitcompat.TestFailOnFieldCacheInsanity$Nested1-8886562EBCD30121-001
   [junit4]    >        at 
__randomizedtesting.SeedInfo.seed([8886562EBCD30121]:0)
   [junit4]    >        at org.apache.lucene.util.TestUtil.rm(TestUtil.java:118)
   [junit4]    >        at 
org.apache.lucene.util.LuceneTestCase$TemporaryFilesCleanupRule.afterAlways(LuceneTestCase.java:2358)
   [junit4]    >        at java.lang.Thread.run(Thread.java:722)
   [junit4] Completed on J1 in 0.41s, 8 tests, 1 error <<< FAILURES!
{code}

  was:
As pointed out by Uwe, something dodgy is going on with unremovable file 
detection because they seem to cross a suite boundary, as in.
{code}
// trunk
svn update -r1586300
cd lucene\core
ant clean test -Dtests.directory=SimpleFSDirectory
{code}

{code}
   [junit4] Suite: org.apache.lucene.search.spans.TestSpanSearchEquivalence
   [junit4]   2> NOTE: test params are: 
codec=FastDecompressionCompressingStoredFields(storedFieldsFormat=CompressingStoredFieldsFormat(compressionMode=FAST_DECOMPRESSION,
 chunkSize=88), 
termVectorsFormat=CompressingTermVectorsFormat(compressionMode=FAST_DECOMPRESSION,
 chunkSize=88)), sim=DefaultSimilarity, locale=en_MT, timezone=America/Menominee
   [junit4]   2> NOTE: Windows 7 6.1 amd64/Oracle Corporation 1.7.0_03 
(64-bit)/cpus=8,threads=1,free=209293024,total=342491136
   [junit4]   2> NOTE: All tests run in this JVM: [TestNoMergePolicy, 
TestPriorityQueue, TestBagOfPositions, TestSpans, TestNRTThreads, 
TestIndexWriterExceptions, TestSimpleAttributeImpl, TestAtomicUpdate, 
TestStressAdvance, Nested1, TestCharsRef, TestBlockPostingsFormat3, 
TestMultiFields, TestDocumentWriter, TestTwoPhaseCommitTool, 
TestCompiledAutomaton, TestNRTReaderWithThreads, TestTransactionRollback, 
TestSearchAfter, TestTermVectorsFormat, TestParallelCompositeReader, 
TestTermVectorsWriter, TestNearSpansOrdered, TestFilterAtomicReader, 
TestMultiTermQueryRewrites, TestLongPostings, TestThreadedForceMerge, TestLock, 
Nested, TestPrefixFilter, TestTermRangeQuery, TestFieldCache, 
TestRecyclingByteBlockAllocator, TestTerm, Test2BPositions, TestArrayUtil, 
Nested1, TestSpanSearchEquivalence]
   [junit4]   2> NOTE: reproduce with: ant test  
-Dtestcase=TestSpanSearchEquivalence -Dtests.seed=8886562EBCD30121 
-Dtests.slow=true -Dtests.directory=SimpleFSDirectory -Dtests.locale=en_MT 
-Dtests.timezone=America/Menominee -Dtests.file.encoding=US-ASCII
   [junit4] ERROR   0.00s J1 | TestSpanSearchEquivalence (suite) <<<
   [junit4]    > Throwable #1: java.io.IOException: Could not remove the 
following files (in the order of attempts):
   [junit4]    >    
C:\Work\lucene-solr-svn\trunk\lucene\build\core\test\J1\.\lucene.util.junitcompat.TestFailOnFieldCacheInsanity$Nested1-8886562EBCD30121-001\index-SimpleFSDirectory-001\_0.fdt
   [junit4]    >    
C:\Work\lucene-solr-svn\trunk\lucene\build\core\test\J1\.\lucene.util.junitcompat.TestFailOnFieldCacheInsanity$Nested1-8886562EBCD30121-001\index-SimpleFSDirectory-001\_0_Lucene41_0.doc
   [junit4]    >    
C:\Work\lucene-solr-svn\trunk\lucene\build\core\test\J1\.\lucene.util.junitcompat.TestFailOnFieldCacheInsanity$Nested1-8886562EBCD30121-001\index-SimpleFSDirectory-001\_0_Lucene41_0.tim
   [junit4]    >    
C:\Work\lucene-solr-svn\trunk\lucene\build\core\test\J1\.\lucene.util.junitcompat.TestFailOnFieldCacheInsanity$Nested1-8886562EBCD30121-001\index-SimpleFSDirectory-001
   [junit4]    >    
C:\Work\lucene-solr-svn\trunk\lucene\build\core\test\J1\.\lucene.util.junitcompat.TestFailOnFieldCacheInsanity$Nested1-8886562EBCD30121-001
   [junit4]    >        at 
__randomizedtesting.SeedInfo.seed([8886562EBCD30121]:0)
   [junit4]    >        at org.apache.lucene.util.TestUtil.rm(TestUtil.java:118)
   [junit4]    >        at 
org.apache.lucene.util.LuceneTestCase$TemporaryFilesCleanupRule.afterAlways(LuceneTestCase.java:2358)
   [junit4]    >        at java.lang.Thread.run(Thread.java:722)
   [junit4] Completed on J1 in 0.41s, 8 tests, 1 error <<< FAILURES!
{code}


> Incorrectly reported uncloseable files.
> ---------------------------------------
>
>                 Key: LUCENE-5592
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5592
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: general/test
>            Reporter: Dawid Weiss
>            Assignee: Dawid Weiss
>
> As pointed out by Uwe, something dodgy is going on with unremovable file 
> detection because they seem to cross a suite boundary, as in.
> {code}
> // trunk
> svn update -r1586300
> cd lucene\core
> ant clean test -Dtests.directory=SimpleFSDirectory
> {code}
> {code}
>    [junit4] Suite: org.apache.lucene.search.spans.TestSpanSearchEquivalence
> ...
>    [junit4] ERROR   0.00s J1 | TestSpanSearchEquivalence (suite) <<<
>    [junit4]    > Throwable #1: java.io.IOException: Could not remove the 
> following files (in the order of attempts):
>    [junit4]    >    
> C:\Work\lucene-solr-svn\trunk\lucene\build\core\test\J1\.\lucene.util.junitcompat.TestFailOnFieldCacheInsanity$Nested1-8886562EBCD30121-001\index-SimpleFSDirectory-001\_0.fdt
>    [junit4]    >    
> C:\Work\lucene-solr-svn\trunk\lucene\build\core\test\J1\.\lucene.util.junitcompat.TestFailOnFieldCacheInsanity$Nested1-8886562EBCD30121-001\index-SimpleFSDirectory-001\_0_Lucene41_0.doc
>    [junit4]    >    
> C:\Work\lucene-solr-svn\trunk\lucene\build\core\test\J1\.\lucene.util.junitcompat.TestFailOnFieldCacheInsanity$Nested1-8886562EBCD30121-001\index-SimpleFSDirectory-001\_0_Lucene41_0.tim
>    [junit4]    >    
> C:\Work\lucene-solr-svn\trunk\lucene\build\core\test\J1\.\lucene.util.junitcompat.TestFailOnFieldCacheInsanity$Nested1-8886562EBCD30121-001\index-SimpleFSDirectory-001
>    [junit4]    >    
> C:\Work\lucene-solr-svn\trunk\lucene\build\core\test\J1\.\lucene.util.junitcompat.TestFailOnFieldCacheInsanity$Nested1-8886562EBCD30121-001
>    [junit4]    >      at 
> __randomizedtesting.SeedInfo.seed([8886562EBCD30121]:0)
>    [junit4]    >      at org.apache.lucene.util.TestUtil.rm(TestUtil.java:118)
>    [junit4]    >      at 
> org.apache.lucene.util.LuceneTestCase$TemporaryFilesCleanupRule.afterAlways(LuceneTestCase.java:2358)
>    [junit4]    >      at java.lang.Thread.run(Thread.java:722)
>    [junit4] Completed on J1 in 0.41s, 8 tests, 1 error <<< FAILURES!
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to