Uploaded image for project: 'REEF (Retired)'
  1. REEF (Retired)
  2. REEF-1078

FileSystemInputPartition doesn't throw file copy issues properly.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.14
    • REEF.NET, REEF.NET IO
    • None

    Description

      In FileSystemInputPartition, we check whether the copy to local succeeded by checking whether the file exists locally:

                      _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);
                      }
      

      However, the FileLoadException doesn't contain any useful error message. We should fix that.

      Attachments

        Issue Links

          Activity

            People

              markus.weimer Markus Weimer
              markus.weimer Markus Weimer
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: