reef-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Markus Weimer (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (REEF-1078) FileSystemInputPartition doesn't throw file copy issues properly.
Date Tue, 23 Feb 2016 21:38:18 GMT

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

Markus Weimer resolved REEF-1078.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 0.14

Resolved via [#730|https://github.com/apache/reef/pull/730]

> FileSystemInputPartition doesn't throw file copy issues properly.
> -----------------------------------------------------------------
>
>                 Key: REEF-1078
>                 URL: https://issues.apache.org/jira/browse/REEF-1078
>             Project: REEF
>          Issue Type: Improvement
>          Components: REEF.NET, REEF.NET IO
>            Reporter: Markus Weimer
>            Assignee: Markus Weimer
>             Fix For: 0.14
>
>
> In {{FileSystemInputPartition}}, we check whether the copy to local succeeded by checking
whether the file exists locally:
> {code}
>                 _fileSystem.CopyToLocal(sourceUri, localFilePath);
>                 if (File.Exists(localFilePath))
>                 {
>                     Logger.Log(Level.Info, string.Format
>                         (CultureInfo.CurrentCulture, "File {0} is Copied to local {1}.",
sourceUri, localFilePath));
>                 }
>                 else
>                 {
>                     string msg = string.Format
>                         (CultureInfo.CurrentCulture, "File {0} is NOT Copied to local
{1}.", sourceUri, localFilePath);
>                     Exceptions.Throw(new FileLoadException(), msg, Logger);
>                 }
> {code}
> However, the {{FileLoadException}} doesn't contain any useful error message. We should
fix that.



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

Mime
View raw message