beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (BEAM-1773) Consider allowing Source#validate() to throw exception
Date Tue, 21 Mar 2017 14:12:41 GMT
Ted Yu created BEAM-1773:
----------------------------

             Summary: Consider allowing Source#validate() to throw exception
                 Key: BEAM-1773
                 URL: https://issues.apache.org/jira/browse/BEAM-1773
             Project: Beam
          Issue Type: Improvement
          Components: sdk-java-core
            Reporter: Ted Yu
            Assignee: Davor Bonaci


In HDFSFileSource.java :
{code}
  @Override
  public void validate() {
...
      } catch (IOException | InterruptedException e) {
        throw new RuntimeException(e);
      }
{code}
Source#validate() should be allowed to throw exception so that we don't resort to using RuntimeException.

Here was related thread on mailing list:

http://search-hadoop.com/m/Beam/gfKHFOwE0uETxae?subj=Re+why+Source+validate+is+not+declared+to+throw+any+exception



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message