[jira] [Commented] (IO-788) FileUtils.moveFile(File, File) can cause IOException in Windows.
[ https://issues.apache.org/jira/browse/IO-788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17721313#comment-17721313 ] David Garratt commented on IO-788: -- My personal testing has not thrown up an errors so far. > FileUtils.moveFile(File, File) can cause IOException in Windows. > > > Key: IO-788 > URL: https://issues.apache.org/jira/browse/IO-788 > Project: Commons IO > Issue Type: Bug > Components: Utilities >Affects Versions: 2.11.0 > Environment: Windows >Reporter: Phu Dinh >Priority: Critical > > Hi, > This report is spawn from a bug found in commons-fileupload:1.4 and up. > > https://issues.apache.org/jira/browse/FILEUPLOAD-338 > > The code at this line: > [https://github.com/apache/commons-io/blob/f22a4227401855ecbfdf8184bbe37275c3aeb5c3/src/main/java/org/apache/commons/io/FileUtils.java#L2392] > > can cause IOException when the .tmp file is deleted during the writing the > upload file to disk. > We found that the java process holding on to the open handler of the .tmp > file (during the read for writing to the destination file); thus the delete() > operation fails and the IOException is thrown. > > This problem only happens on Windows. > > Thanks, -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (IO-788) FileUtils.moveFile(File, File) can cause IOException in Windows.
[ https://issues.apache.org/jira/browse/IO-788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17718193#comment-17718193 ] Gary D. Gregory commented on IO-788: [~dgarratt] There is not. > FileUtils.moveFile(File, File) can cause IOException in Windows. > > > Key: IO-788 > URL: https://issues.apache.org/jira/browse/IO-788 > Project: Commons IO > Issue Type: Bug > Components: Utilities >Affects Versions: 2.11.0 > Environment: Windows >Reporter: Phu Dinh >Priority: Critical > > Hi, > This report is spawn from a bug found in commons-fileupload:1.4 and up. > > https://issues.apache.org/jira/browse/FILEUPLOAD-338 > > The code at this line: > [https://github.com/apache/commons-io/blob/f22a4227401855ecbfdf8184bbe37275c3aeb5c3/src/main/java/org/apache/commons/io/FileUtils.java#L2392] > > can cause IOException when the .tmp file is deleted during the writing the > upload file to disk. > We found that the java process holding on to the open handler of the .tmp > file (during the read for writing to the destination file); thus the delete() > operation fails and the IOException is thrown. > > This problem only happens on Windows. > > Thanks, -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (IO-788) FileUtils.moveFile(File, File) can cause IOException in Windows.
[ https://issues.apache.org/jira/browse/IO-788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17718191#comment-17718191 ] David Garratt commented on IO-788: -- If there some play I can find out which method are thread safe. For example FileUtils.listfiles My test application is multi threaded. Dave > FileUtils.moveFile(File, File) can cause IOException in Windows. > > > Key: IO-788 > URL: https://issues.apache.org/jira/browse/IO-788 > Project: Commons IO > Issue Type: Bug > Components: Utilities >Affects Versions: 2.11.0 > Environment: Windows >Reporter: Phu Dinh >Priority: Critical > > Hi, > This report is spawn from a bug found in commons-fileupload:1.4 and up. > > https://issues.apache.org/jira/browse/FILEUPLOAD-338 > > The code at this line: > [https://github.com/apache/commons-io/blob/f22a4227401855ecbfdf8184bbe37275c3aeb5c3/src/main/java/org/apache/commons/io/FileUtils.java#L2392] > > can cause IOException when the .tmp file is deleted during the writing the > upload file to disk. > We found that the java process holding on to the open handler of the .tmp > file (during the read for writing to the destination file); thus the delete() > operation fails and the IOException is thrown. > > This problem only happens on Windows. > > Thanks, -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (IO-788) FileUtils.moveFile(File, File) can cause IOException in Windows.
[ https://issues.apache.org/jira/browse/IO-788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17717355#comment-17717355 ] Gary D. Gregory commented on IO-788: [~dgarratt] sounds good! Keep us posted and TY. > FileUtils.moveFile(File, File) can cause IOException in Windows. > > > Key: IO-788 > URL: https://issues.apache.org/jira/browse/IO-788 > Project: Commons IO > Issue Type: Bug > Components: Utilities >Affects Versions: 2.11.0 > Environment: Windows >Reporter: Phu Dinh >Priority: Critical > > Hi, > This report is spawn from a bug found in commons-fileupload:1.4 and up. > > https://issues.apache.org/jira/browse/FILEUPLOAD-338 > > The code at this line: > [https://github.com/apache/commons-io/blob/f22a4227401855ecbfdf8184bbe37275c3aeb5c3/src/main/java/org/apache/commons/io/FileUtils.java#L2392] > > can cause IOException when the .tmp file is deleted during the writing the > upload file to disk. > We found that the java process holding on to the open handler of the .tmp > file (during the read for writing to the destination file); thus the delete() > operation fails and the IOException is thrown. > > This problem only happens on Windows. > > Thanks, -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (IO-788) FileUtils.moveFile(File, File) can cause IOException in Windows.
[ https://issues.apache.org/jira/browse/IO-788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17717172#comment-17717172 ] David Garratt commented on IO-788: -- Hopefully I'm doing this right - I downloaded the source from GitHub, created the jar from source. Then I've included that in my application. Now I don't use every API but I do have an application which I can leave running for days at a time and give it files to process using a test rig. basically I can stress test it which should sort out any resource leaks. > FileUtils.moveFile(File, File) can cause IOException in Windows. > > > Key: IO-788 > URL: https://issues.apache.org/jira/browse/IO-788 > Project: Commons IO > Issue Type: Bug > Components: Utilities >Affects Versions: 2.11.0 > Environment: Windows >Reporter: Phu Dinh >Priority: Critical > > Hi, > This report is spawn from a bug found in commons-fileupload:1.4 and up. > > https://issues.apache.org/jira/browse/FILEUPLOAD-338 > > The code at this line: > [https://github.com/apache/commons-io/blob/f22a4227401855ecbfdf8184bbe37275c3aeb5c3/src/main/java/org/apache/commons/io/FileUtils.java#L2392] > > can cause IOException when the .tmp file is deleted during the writing the > upload file to disk. > We found that the java process holding on to the open handler of the .tmp > file (during the read for writing to the destination file); thus the delete() > operation fails and the IOException is thrown. > > This problem only happens on Windows. > > Thanks, -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (IO-788) FileUtils.moveFile(File, File) can cause IOException in Windows.
[ https://issues.apache.org/jira/browse/IO-788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17716884#comment-17716884 ] Gary D. Gregory commented on IO-788: [~dgarratt] I plan on cutting a release candidate this week. Please validate git master as much as you can ASAP. TY! > FileUtils.moveFile(File, File) can cause IOException in Windows. > > > Key: IO-788 > URL: https://issues.apache.org/jira/browse/IO-788 > Project: Commons IO > Issue Type: Bug > Components: Utilities >Affects Versions: 2.11.0 > Environment: Windows >Reporter: Phu Dinh >Priority: Critical > > Hi, > This report is spawn from a bug found in commons-fileupload:1.4 and up. > > https://issues.apache.org/jira/browse/FILEUPLOAD-338 > > The code at this line: > [https://github.com/apache/commons-io/blob/f22a4227401855ecbfdf8184bbe37275c3aeb5c3/src/main/java/org/apache/commons/io/FileUtils.java#L2392] > > can cause IOException when the .tmp file is deleted during the writing the > upload file to disk. > We found that the java process holding on to the open handler of the .tmp > file (during the read for writing to the destination file); thus the delete() > operation fails and the IOException is thrown. > > This problem only happens on Windows. > > Thanks, -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (IO-788) FileUtils.moveFile(File, File) can cause IOException in Windows.
[ https://issues.apache.org/jira/browse/IO-788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17716876#comment-17716876 ] David Garratt commented on IO-788: -- Hi [~ggregory] - any news on thr 2.12.0 release ? > FileUtils.moveFile(File, File) can cause IOException in Windows. > > > Key: IO-788 > URL: https://issues.apache.org/jira/browse/IO-788 > Project: Commons IO > Issue Type: Bug > Components: Utilities >Affects Versions: 2.11.0 > Environment: Windows >Reporter: Phu Dinh >Priority: Critical > > Hi, > This report is spawn from a bug found in commons-fileupload:1.4 and up. > > https://issues.apache.org/jira/browse/FILEUPLOAD-338 > > The code at this line: > [https://github.com/apache/commons-io/blob/f22a4227401855ecbfdf8184bbe37275c3aeb5c3/src/main/java/org/apache/commons/io/FileUtils.java#L2392] > > can cause IOException when the .tmp file is deleted during the writing the > upload file to disk. > We found that the java process holding on to the open handler of the .tmp > file (during the read for writing to the destination file); thus the delete() > operation fails and the IOException is thrown. > > This problem only happens on Windows. > > Thanks, -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (IO-788) FileUtils.moveFile(File, File) can cause IOException in Windows.
[ https://issues.apache.org/jira/browse/IO-788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17711997#comment-17711997 ] David Garratt commented on IO-788: -- Has anyone been able to replicate this or better still determine if 2.12 fixes it. I have to admit I am sure that occasionally my application encounters this but it only happens every 2-3 weeks and when it processes thousands of files a day it's just really difficult to trigger it deliberately. In my scenario I am running my app as a windows service and the code is copying a file from a remote windows share to the local machine. Occasionally it just seems to stop doing this until the program is restarted and then it works fine for another 2 weeks. > FileUtils.moveFile(File, File) can cause IOException in Windows. > > > Key: IO-788 > URL: https://issues.apache.org/jira/browse/IO-788 > Project: Commons IO > Issue Type: Bug > Components: Utilities >Affects Versions: 2.11.0 > Environment: Windows >Reporter: Phu Dinh >Priority: Critical > > Hi, > This report is spawn from a bug found in commons-fileupload:1.4 and up. > > https://issues.apache.org/jira/browse/FILEUPLOAD-338 > > The code at this line: > [https://github.com/apache/commons-io/blob/f22a4227401855ecbfdf8184bbe37275c3aeb5c3/src/main/java/org/apache/commons/io/FileUtils.java#L2392] > > can cause IOException when the .tmp file is deleted during the writing the > upload file to disk. > We found that the java process holding on to the open handler of the .tmp > file (during the read for writing to the destination file); thus the delete() > operation fails and the IOException is thrown. > > This problem only happens on Windows. > > Thanks, -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (IO-788) FileUtils.moveFile(File, File) can cause IOException in Windows.
[ https://issues.apache.org/jira/browse/IO-788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17703184#comment-17703184 ] Gary D. Gregory commented on IO-788: Also try 2.12.0-SNAPSHOT. > FileUtils.moveFile(File, File) can cause IOException in Windows. > > > Key: IO-788 > URL: https://issues.apache.org/jira/browse/IO-788 > Project: Commons IO > Issue Type: Bug > Components: Utilities >Affects Versions: 2.11.0 > Environment: Windows >Reporter: Phu Dinh >Priority: Critical > > Hi, > This report is spawn from a bug found in commons-fileupload:1.4 and up. > > https://issues.apache.org/jira/browse/FILEUPLOAD-338 > > The code at this line: > [https://github.com/apache/commons-io/blob/f22a4227401855ecbfdf8184bbe37275c3aeb5c3/src/main/java/org/apache/commons/io/FileUtils.java#L2392] > > can cause IOException when the .tmp file is deleted during the writing the > upload file to disk. > We found that the java process holding on to the open handler of the .tmp > file (during the read for writing to the destination file); thus the delete() > operation fails and the IOException is thrown. > > This problem only happens on Windows. > > Thanks, -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (IO-788) FileUtils.moveFile(File, File) can cause IOException in Windows.
[ https://issues.apache.org/jira/browse/IO-788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17702949#comment-17702949 ] Gary D. Gregory commented on IO-788: [~pmdinh] I'm not sure what you expect us to do here... :( Do you have a reproducer? The best path forward would be for you to provide a PR on GitHub with a failing test. > FileUtils.moveFile(File, File) can cause IOException in Windows. > > > Key: IO-788 > URL: https://issues.apache.org/jira/browse/IO-788 > Project: Commons IO > Issue Type: Bug > Components: Utilities >Affects Versions: 2.11.0 > Environment: Windows >Reporter: Phu Dinh >Priority: Critical > > Hi, > This report is spawn from a bug found in commons-fileupload:1.4 and up. > > https://issues.apache.org/jira/browse/FILEUPLOAD-338 > > The code at this line: > [https://github.com/apache/commons-io/blob/f22a4227401855ecbfdf8184bbe37275c3aeb5c3/src/main/java/org/apache/commons/io/FileUtils.java#L2392] > > can cause IOException when the .tmp file is deleted during the writing the > upload file to disk. > We found that the java process holding on to the open handler of the .tmp > file (during the read for writing to the destination file); thus the delete() > operation fails and the IOException is thrown. > > This problem only happens on Windows. > > Thanks, -- This message was sent by Atlassian Jira (v8.20.10#820010)