[ 
https://issues.apache.org/jira/browse/FLINK-9996?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16561716#comment-16561716
 ] 

Chesnay Schepler commented on FLINK-9996:
-----------------------------------------

Looks like a bug was introduced in FLINK-8439. According to the {{FileSystem}} 
docs failures to create the FS should throw an {{IOException}}, but the 
{{RuntimeException}} thrown by presto is never catched.

> PrestoS3FileSystemITCase#testConfigKeysForwarding fails on travis
> -----------------------------------------------------------------
>
>                 Key: FLINK-9996
>                 URL: https://issues.apache.org/jira/browse/FLINK-9996
>             Project: Flink
>          Issue Type: Bug
>          Components: FileSystem, Tests
>    Affects Versions: 1.6.0
>            Reporter: Chesnay Schepler
>            Assignee: Chesnay Schepler
>            Priority: Major
>             Fix For: 1.6.0
>
>
> https://travis-ci.org/apache/flink/jobs/409590482
> {code}
> Tests run: 3, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 5.838 sec <<< 
> FAILURE! - in org.apache.flink.fs.s3presto.PrestoS3FileSystemITCase
> testConfigKeysForwarding(org.apache.flink.fs.s3presto.PrestoS3FileSystemITCase)
>   Time elapsed: 1.613 sec  <<< ERROR!
> java.lang.RuntimeException: S3 credentials not configured
>       at 
> com.facebook.presto.hive.PrestoS3FileSystem.getAwsCredentialsProvider(PrestoS3FileSystem.java:702)
>       at 
> com.facebook.presto.hive.PrestoS3FileSystem.createAmazonS3Client(PrestoS3FileSystem.java:628)
>       at 
> com.facebook.presto.hive.PrestoS3FileSystem.initialize(PrestoS3FileSystem.java:212)
>       at 
> org.apache.flink.runtime.fs.hdfs.AbstractFileSystemFactory.create(AbstractFileSystemFactory.java:56)
>       at 
> org.apache.flink.core.fs.FileSystem.getUnguardedFileSystem(FileSystem.java:395)
>       at org.apache.flink.core.fs.FileSystem.get(FileSystem.java:318)
>       at org.apache.flink.core.fs.Path.getFileSystem(Path.java:298)
>       at 
> org.apache.flink.fs.s3presto.PrestoS3FileSystemITCase.testConfigKeysForwarding(PrestoS3FileSystemITCase.java:84)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to