commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Poulter (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (IO-544) Could FileUtils.copyFile not be flushed and synced when comparing file sizes?
Date Wed, 05 Jul 2017 18:23:00 GMT

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

Sean Poulter updated IO-544:
----------------------------
    Description: 
I've been struggling to troubleshoot intermittent {{IOExceptions}} thrown from {{FileUtils.doCopyFile}}
when copying 2-4KB files from a local temporary file to a network drive. Despite the error,
the file appears on the network drive when I check. Should the output channel/buffer be forced/flushed
before closing, and synchronized before comparing the file lengths? It's a rather intermittent
issue on a relatively high throughput PC so I'd expect there to be more IO latency than normal.

Thanks,
Sean

  was:
I've been struggling to troubleshoot intermittent IOExceptions thrown from FileUtils.doCopyFile
when copying 2-4KB files from a local temporary file to a network drive. Despite the error,
the file appears on the network drive when I check. Should the output channel/buffer be forced/flushed
before closing, and synchronized before comparing the file lengths? It's a rather intermittent
issue on a relatively high throughput PC so I'd expect there to be more IO latency than normal.

Thanks,
Sean


> Could FileUtils.copyFile not be flushed and synced when comparing file sizes?
> -----------------------------------------------------------------------------
>
>                 Key: IO-544
>                 URL: https://issues.apache.org/jira/browse/IO-544
>             Project: Commons IO
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 2.5
>         Environment: Win Server 2008, x86
>            Reporter: Sean Poulter
>
> I've been struggling to troubleshoot intermittent {{IOExceptions}} thrown from {{FileUtils.doCopyFile}}
when copying 2-4KB files from a local temporary file to a network drive. Despite the error,
the file appears on the network drive when I check. Should the output channel/buffer be forced/flushed
before closing, and synchronized before comparing the file lengths? It's a rather intermittent
issue on a relatively high throughput PC so I'd expect there to be more IO latency than normal.
> Thanks,
> Sean



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message