AHeise commented on a change in pull request #11139:
[FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is
missing.
URL: https://github.com/apache/flink/pull/11139#discussion_r381261829
##########
File path: flink-core/src/main/java/org/apache/flink/core/fs/FileSystem.java
##########
@@ -440,8 +455,18 @@ public static FileSystem getUnguardedFileSystem(final URI
fsUri) throws IOExcept
try (TemporaryClassLoaderContext
classLoaderContext = new TemporaryClassLoaderContext(classLoader)) {
fs = factory.create(uri);
}
- }
- else {
+ } else if
(DIRECTLY_SUPPORTED_FILESYSTEM.containsKey(uri.getScheme())) {
+ final Collection<String> plugins =
DIRECTLY_SUPPORTED_FILESYSTEM.get(uri.getScheme());
+ throw new
UnsupportedFileSystemSchemeException(String.format(
Review comment:
any better exception type?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services