Github user tillrohrmann commented on a diff in the pull request:

    https://github.com/apache/flink/pull/2765#discussion_r86813824
  
    --- Diff: 
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/functions/source/ContinuousFileMonitoringFunction.java
 ---
    @@ -124,6 +124,9 @@ public void open(Configuration parameters) throws 
Exception {
        @Override
        public void run(SourceFunction.SourceContext<TimestampedFileInputSplit> 
context) throws Exception {
                FileSystem fileSystem = FileSystem.get(new URI(path));
    +           if (!fileSystem.exists(new Path(path))) {
    +                   throw new IOException("The provided file path " + path 
+ " does not exist.");
    --- End diff --
    
    I think we should throw an `FileNotFoundException` which better reflects 
the reason of the error.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to