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

Uwe Schindler commented on LUCENE-5906:
---------------------------------------

New patch fails in datacorrumpterhandler:

{noformat}
   [junit4]   2> NOTE: reproduce with: ant test  
-Dtestcase=TestNonWritablePersistFile -Dtests.method=testNonWritablePersistFile 
-Dtests.seed=CA8991891E1876AB -Dtests.locale=mt -Dtests.timezone=Asia/Tokyo 
-Dtests.file.encoding=UTF-8
   [junit4] ERROR   0.55s J2 | 
TestNonWritablePersistFile.testNonWritablePersistFile <<<
   [junit4]    > Throwable #1: java.nio.file.AccessDeniedException: 
C:\Users\Uwe 
Schindler\Projects\lucene\trunk-lusolr1\solr\build\contrib\solr-dataimporthandler\test\J2\.\temp\solr.handler.dataimport.TestNonWritablePersistFile-CA8991891E1876AB-001\tempDir-001\collection1\conf\dataimport.properties
   [junit4]    >        at 
__randomizedtesting.SeedInfo.seed([CA8991891E1876AB:7C810C466217C87E]:0)
   [junit4]    >        at 
sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83)
   [junit4]    >        at 
sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
   [junit4]    >        at 
sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
   [junit4]    >        at 
sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:269)
   [junit4]    >        at 
sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103)
   [junit4]    >        at java.nio.file.Files.delete(Files.java:1079)
   [junit4]    >        at 
org.apache.solr.handler.dataimport.TestNonWritablePersistFile.testNonWritablePersistFile(TestNonWritablePersistFile.java:96)
   [junit4]    >        at java.lang.Thread.run(Thread.java:745)
{noformat}

> Use Files.delete instead of File.delete + made up exception
> -----------------------------------------------------------
>
>                 Key: LUCENE-5906
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5906
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>         Attachments: LUCENE-5906.patch, LUCENE-5906.patch, LUCENE-5906.patch, 
> LUCENE-5906.patch
>
>
> We are on java7, if we cannot delete a file, this one returns a real 
> exception as to why.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to