You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2020/02/19 12:32:15 UTC

[GitHub] [flink] AHeise opened a new pull request #11139: [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.

AHeise opened a new 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
 
 
   <!--
   *Thank you very much for contributing to Apache Flink - we are happy that you want to help us improve Flink. To help the community review your contribution in the best possible way, please go through the checklist below, which will get the contribution into a shape in which it can be best reviewed.*
   
   *Please understand that we do not do this to make contributions to Flink a hassle. In order to uphold a high standard of quality for code contributions, while at the same time managing a large number of contributions, we need contributors to prepare the contributions well, and give reviewers enough contextual information for the review. Please also understand that contributions that do not follow this guide will take longer to review and thus typically be picked up with lower priority by the community.*
   
   ## Contribution Checklist
   
     - Make sure that the pull request corresponds to a [JIRA issue](https://issues.apache.org/jira/projects/FLINK/issues). Exceptions are made for typos in JavaDoc or documentation files, which need no JIRA issue.
     
     - Name the pull request in the form "[FLINK-XXXX] [component] Title of the pull request", where *FLINK-XXXX* should be replaced by the actual issue number. Skip *component* if you are unsure about which is the best component.
     Typo fixes that have no associated JIRA issue should be named following this pattern: `[hotfix] [docs] Fix typo in event time introduction` or `[hotfix] [javadocs] Expand JavaDoc for PuncuatedWatermarkGenerator`.
   
     - Fill out the template below to describe the changes contributed by the pull request. That will give reviewers the context they need to do the review.
     
     - Make sure that the change passes the automated tests, i.e., `mvn clean verify` passes. You can set up Travis CI to do that following [this guide](https://flink.apache.org/contributing/contribute-code.html#open-a-pull-request).
   
     - Each pull request should address only one issue, not mix up code from multiple issues.
     
     - Each commit in the pull request has a meaningful commit message (including the JIRA id)
   
     - Once all items of the checklist are addressed, remove the above text and this checklist, leaving only the filled out template below.
   
   
   **(The sections below can be removed for hotfixes of typos)**
   -->
   
   ## What is the purpose of the change
   
   Throw an error when a plugin for a known scheme is missing.
   
   The error also avoid Hadoop fallback being used for s3 or other directly supported schemes.
   
   ## Brief change log
   
   - Adding hard-coded list of known scheme/plugins.
   - Use list for meaningful error messages when a scheme does not have a matching FileSystem.
   
   ## Verifying this change
   
   Added two unit tests.
   
   ## Does this pull request potentially affect one of the following parts:
   
     - Dependencies (does it add or upgrade a dependency): (yes / **no**)
     - The public API, i.e., is any changed class annotated with `@Public(Evolving)`: (yes / **no**)
     - The serializers: (yes / **no** / don't know)
     - The runtime per-record code paths (performance sensitive): (yes / **no** / don't know)
     - Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: (yes / **no** / don't know)
     - The S3 file system connector: (yes / no / **don't know**)
   
   ## Documentation
   
     - Does this pull request introduce a new feature? (yes / **no**)
     - If yes, how is the feature documented? (**not applicable** / docs / JavaDocs / not documented)
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] flinkbot edited a comment on issue #11139: [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on issue #11139:  [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.
URL: https://github.com/apache/flink/pull/11139#issuecomment-588228416
 
 
   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "c550a19361c90006b335dc954b7ae0c3b176e7a1",
       "status" : "SUCCESS",
       "url" : "https://travis-ci.com/flink-ci/flink/builds/149633747",
       "triggerID" : "c550a19361c90006b335dc954b7ae0c3b176e7a1",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * c550a19361c90006b335dc954b7ae0c3b176e7a1 Travis: [SUCCESS](https://travis-ci.com/flink-ci/flink/builds/149633747) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] flinkbot edited a comment on issue #11139: [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on issue #11139:  [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.
URL: https://github.com/apache/flink/pull/11139#issuecomment-588228416
 
 
   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "c550a19361c90006b335dc954b7ae0c3b176e7a1",
       "status" : "DELETED",
       "url" : "https://travis-ci.com/flink-ci/flink/builds/149633747",
       "triggerID" : "c550a19361c90006b335dc954b7ae0c3b176e7a1",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea",
       "status" : "DELETED",
       "url" : "https://travis-ci.com/flink-ci/flink/builds/150619440",
       "triggerID" : "e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=5610",
       "triggerID" : "e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2ffd051a696370a2422ff1b96af0c8cc1f50c57f",
       "status" : "DELETED",
       "url" : "https://travis-ci.com/flink-ci/flink/builds/150651063",
       "triggerID" : "2ffd051a696370a2422ff1b96af0c8cc1f50c57f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "77c59494bb11c3dc45c3ebe45ecdcd4ba16c09c0",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "77c59494bb11c3dc45c3ebe45ecdcd4ba16c09c0",
       "triggerType" : "PUSH"
     }, {
       "hash" : "dfc656c0e56d0c8389953803fb6172cda1f87662",
       "status" : "SUCCESS",
       "url" : "https://travis-ci.com/flink-ci/flink/builds/150844855",
       "triggerID" : "dfc656c0e56d0c8389953803fb6172cda1f87662",
       "triggerType" : "PUSH"
     }, {
       "hash" : "903572997e4792d5777efd195f11ada6054d09ed",
       "status" : "PENDING",
       "url" : "https://travis-ci.com/flink-ci/flink/builds/150994612",
       "triggerID" : "903572997e4792d5777efd195f11ada6054d09ed",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 77c59494bb11c3dc45c3ebe45ecdcd4ba16c09c0 UNKNOWN
   * dfc656c0e56d0c8389953803fb6172cda1f87662 Travis: [SUCCESS](https://travis-ci.com/flink-ci/flink/builds/150844855) 
   * 903572997e4792d5777efd195f11ada6054d09ed Travis: [PENDING](https://travis-ci.com/flink-ci/flink/builds/150994612) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] flinkbot edited a comment on issue #11139: [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on issue #11139:  [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.
URL: https://github.com/apache/flink/pull/11139#issuecomment-588228416
 
 
   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "c550a19361c90006b335dc954b7ae0c3b176e7a1",
       "status" : "DELETED",
       "url" : "https://travis-ci.com/flink-ci/flink/builds/149633747",
       "triggerID" : "c550a19361c90006b335dc954b7ae0c3b176e7a1",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea",
       "status" : "DELETED",
       "url" : "https://travis-ci.com/flink-ci/flink/builds/150619440",
       "triggerID" : "e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=5610",
       "triggerID" : "e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2ffd051a696370a2422ff1b96af0c8cc1f50c57f",
       "status" : "DELETED",
       "url" : "https://travis-ci.com/flink-ci/flink/builds/150651063",
       "triggerID" : "2ffd051a696370a2422ff1b96af0c8cc1f50c57f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "77c59494bb11c3dc45c3ebe45ecdcd4ba16c09c0",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "77c59494bb11c3dc45c3ebe45ecdcd4ba16c09c0",
       "triggerType" : "PUSH"
     }, {
       "hash" : "dfc656c0e56d0c8389953803fb6172cda1f87662",
       "status" : "SUCCESS",
       "url" : "https://travis-ci.com/flink-ci/flink/builds/150844855",
       "triggerID" : "dfc656c0e56d0c8389953803fb6172cda1f87662",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 77c59494bb11c3dc45c3ebe45ecdcd4ba16c09c0 UNKNOWN
   * dfc656c0e56d0c8389953803fb6172cda1f87662 Travis: [SUCCESS](https://travis-ci.com/flink-ci/flink/builds/150844855) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] flinkbot edited a comment on issue #11139: [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on issue #11139:  [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.
URL: https://github.com/apache/flink/pull/11139#issuecomment-588228416
 
 
   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "c550a19361c90006b335dc954b7ae0c3b176e7a1",
       "status" : "DELETED",
       "url" : "https://travis-ci.com/flink-ci/flink/builds/149633747",
       "triggerID" : "c550a19361c90006b335dc954b7ae0c3b176e7a1",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea",
       "status" : "DELETED",
       "url" : "https://travis-ci.com/flink-ci/flink/builds/150619440",
       "triggerID" : "e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=5610",
       "triggerID" : "e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2ffd051a696370a2422ff1b96af0c8cc1f50c57f",
       "status" : "CANCELED",
       "url" : "https://travis-ci.com/flink-ci/flink/builds/150651063",
       "triggerID" : "2ffd051a696370a2422ff1b96af0c8cc1f50c57f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "77c59494bb11c3dc45c3ebe45ecdcd4ba16c09c0",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "77c59494bb11c3dc45c3ebe45ecdcd4ba16c09c0",
       "triggerType" : "PUSH"
     }, {
       "hash" : "dfc656c0e56d0c8389953803fb6172cda1f87662",
       "status" : "PENDING",
       "url" : "https://travis-ci.com/flink-ci/flink/builds/150844855",
       "triggerID" : "dfc656c0e56d0c8389953803fb6172cda1f87662",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 2ffd051a696370a2422ff1b96af0c8cc1f50c57f Travis: [CANCELED](https://travis-ci.com/flink-ci/flink/builds/150651063) 
   * 77c59494bb11c3dc45c3ebe45ecdcd4ba16c09c0 UNKNOWN
   * dfc656c0e56d0c8389953803fb6172cda1f87662 Travis: [PENDING](https://travis-ci.com/flink-ci/flink/builds/150844855) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] zentol commented on a change in pull request #11139: [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.

Posted by GitBox <gi...@apache.org>.
zentol 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_r381477460
 
 

 ##########
 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(
+					"Could not find a file system implementation for scheme '%s'. The scheme is " +
+						"directly supported by Flink through the following plugin%s: %s. Please ensure that each " +
+						"plugin resides within its own subfolder within the plugins directory. See https://ci.apache" +
+						".org/projects/flink/flink-docs-master/ops/plugins.html for more information.",
 
 Review comment:
   ```suggestion
   						".org/projects/flink/flink-docs-stable/ops/plugins.html for more information.",
   ```

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] AHeise commented on a change in pull request #11139: [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.

Posted by GitBox <gi...@apache.org>.
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_r385668339
 
 

 ##########
 File path: flink-core/src/main/java/org/apache/flink/core/fs/FileSystem.java
 ##########
 @@ -440,8 +467,21 @@ public static FileSystem getUnguardedFileSystem(final URI fsUri) throws IOExcept
 				try (TemporaryClassLoaderContext ignored = TemporaryClassLoaderContext.of(classLoader)) {
 					fs = factory.create(uri);
 				}
-			}
-			else {
+			} else if (!ALLOWED_FALLBACK_FILESYSTEMS.contains(uri.getScheme()) &&
+					DIRECTLY_SUPPORTED_FILESYSTEM.containsKey(uri.getScheme())) {
+				final Collection<String> plugins = DIRECTLY_SUPPORTED_FILESYSTEM.get(uri.getScheme());
+				throw new UnsupportedFileSystemSchemeException(String.format(
+					"Could not find a file system implementation for scheme '%s'. The scheme is " +
+						"directly supported by Flink through the following plugin%s: %s. Please ensure that each " +
+						"plugin resides within its own subfolder within the plugins directory. See https://ci.apache" +
+						".org/projects/flink/flink-docs-stable/ops/plugins.html for more information. If you want to " +
+						"use a Hadoop file system for that scheme, please add the scheme to the configuration fs" +
+						".allowed-fallback-filesystems.",
+						uri.getScheme(),
+						plugins.size() == 1 ? "" : "s",
+						String.join(", ", plugins)
+					));
 
 Review comment:
   Added reference.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] pnowojski merged pull request #11139: [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.

Posted by GitBox <gi...@apache.org>.
pnowojski merged 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
 
 
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] flinkbot edited a comment on issue #11139: [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on issue #11139:  [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.
URL: https://github.com/apache/flink/pull/11139#issuecomment-588228416
 
 
   <!--
   Meta data
   Hash:c550a19361c90006b335dc954b7ae0c3b176e7a1 Status:PENDING URL:https://travis-ci.com/flink-ci/flink/builds/149633747 TriggerType:PUSH TriggerID:c550a19361c90006b335dc954b7ae0c3b176e7a1
   -->
   ## CI report:
   
   * c550a19361c90006b335dc954b7ae0c3b176e7a1 Travis: [PENDING](https://travis-ci.com/flink-ci/flink/builds/149633747) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] StephanEwen commented on issue #11139: [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.

Posted by GitBox <gi...@apache.org>.
StephanEwen commented on issue #11139:  [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.
URL: https://github.com/apache/flink/pull/11139#issuecomment-588791570
 
 
   With this change, we do effectively forbid users to use S3 / OSS / Swift support through their Hadoop Classpath.
   
   I am a bit torn whether we want that. What if there is a new version of the FS connector that you can use via Hadoop's FS support, but our own bundles file systems are not yet updated.
   We could also think to reduce this to a "warning" instead of failing hard.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] flinkbot edited a comment on issue #11139: [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on issue #11139:  [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.
URL: https://github.com/apache/flink/pull/11139#issuecomment-588228416
 
 
   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "c550a19361c90006b335dc954b7ae0c3b176e7a1",
       "status" : "SUCCESS",
       "url" : "https://travis-ci.com/flink-ci/flink/builds/149633747",
       "triggerID" : "c550a19361c90006b335dc954b7ae0c3b176e7a1",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea",
       "status" : "PENDING",
       "url" : "https://travis-ci.com/flink-ci/flink/builds/150619440",
       "triggerID" : "e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * c550a19361c90006b335dc954b7ae0c3b176e7a1 Travis: [SUCCESS](https://travis-ci.com/flink-ci/flink/builds/149633747) 
   * e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea Travis: [PENDING](https://travis-ci.com/flink-ci/flink/builds/150619440) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] AHeise commented on a change in pull request #11139: [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.

Posted by GitBox <gi...@apache.org>.
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_r381859960
 
 

 ##########
 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(
+					"Could not find a file system implementation for scheme '%s'. The scheme is " +
+						"directly supported by Flink through the following plugin%s: %s. Please ensure that each " +
 
 Review comment:
   This line would add an s if there multiple plugins (s3).

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] flinkbot edited a comment on issue #11139: [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on issue #11139:  [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.
URL: https://github.com/apache/flink/pull/11139#issuecomment-588228416
 
 
   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "c550a19361c90006b335dc954b7ae0c3b176e7a1",
       "status" : "DELETED",
       "url" : "https://travis-ci.com/flink-ci/flink/builds/149633747",
       "triggerID" : "c550a19361c90006b335dc954b7ae0c3b176e7a1",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea",
       "status" : "DELETED",
       "url" : "https://travis-ci.com/flink-ci/flink/builds/150619440",
       "triggerID" : "e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=5610",
       "triggerID" : "e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2ffd051a696370a2422ff1b96af0c8cc1f50c57f",
       "status" : "DELETED",
       "url" : "https://travis-ci.com/flink-ci/flink/builds/150651063",
       "triggerID" : "2ffd051a696370a2422ff1b96af0c8cc1f50c57f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "77c59494bb11c3dc45c3ebe45ecdcd4ba16c09c0",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "77c59494bb11c3dc45c3ebe45ecdcd4ba16c09c0",
       "triggerType" : "PUSH"
     }, {
       "hash" : "dfc656c0e56d0c8389953803fb6172cda1f87662",
       "status" : "SUCCESS",
       "url" : "https://travis-ci.com/flink-ci/flink/builds/150844855",
       "triggerID" : "dfc656c0e56d0c8389953803fb6172cda1f87662",
       "triggerType" : "PUSH"
     }, {
       "hash" : "903572997e4792d5777efd195f11ada6054d09ed",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "903572997e4792d5777efd195f11ada6054d09ed",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 77c59494bb11c3dc45c3ebe45ecdcd4ba16c09c0 UNKNOWN
   * dfc656c0e56d0c8389953803fb6172cda1f87662 Travis: [SUCCESS](https://travis-ci.com/flink-ci/flink/builds/150844855) 
   * 903572997e4792d5777efd195f11ada6054d09ed UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] flinkbot edited a comment on issue #11139: [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on issue #11139:  [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.
URL: https://github.com/apache/flink/pull/11139#issuecomment-588228416
 
 
   <!--
   Meta data
   Hash:c550a19361c90006b335dc954b7ae0c3b176e7a1 Status:SUCCESS URL:https://travis-ci.com/flink-ci/flink/builds/149633747 TriggerType:PUSH TriggerID:c550a19361c90006b335dc954b7ae0c3b176e7a1
   -->
   ## CI report:
   
   * c550a19361c90006b335dc954b7ae0c3b176e7a1 Travis: [SUCCESS](https://travis-ci.com/flink-ci/flink/builds/149633747) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] flinkbot edited a comment on issue #11139: [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on issue #11139:  [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.
URL: https://github.com/apache/flink/pull/11139#issuecomment-588228416
 
 
   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "c550a19361c90006b335dc954b7ae0c3b176e7a1",
       "status" : "DELETED",
       "url" : "https://travis-ci.com/flink-ci/flink/builds/149633747",
       "triggerID" : "c550a19361c90006b335dc954b7ae0c3b176e7a1",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea",
       "status" : "PENDING",
       "url" : "https://travis-ci.com/flink-ci/flink/builds/150619440",
       "triggerID" : "e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=5610",
       "triggerID" : "e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea Travis: [PENDING](https://travis-ci.com/flink-ci/flink/builds/150619440) Azure: [FAILURE](https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=5610) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] flinkbot edited a comment on issue #11139: [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on issue #11139:  [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.
URL: https://github.com/apache/flink/pull/11139#issuecomment-588228416
 
 
   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "c550a19361c90006b335dc954b7ae0c3b176e7a1",
       "status" : "DELETED",
       "url" : "https://travis-ci.com/flink-ci/flink/builds/149633747",
       "triggerID" : "c550a19361c90006b335dc954b7ae0c3b176e7a1",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea",
       "status" : "SUCCESS",
       "url" : "https://travis-ci.com/flink-ci/flink/builds/150619440",
       "triggerID" : "e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=5610",
       "triggerID" : "e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2ffd051a696370a2422ff1b96af0c8cc1f50c57f",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "2ffd051a696370a2422ff1b96af0c8cc1f50c57f",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea Travis: [SUCCESS](https://travis-ci.com/flink-ci/flink/builds/150619440) Azure: [FAILURE](https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=5610) 
   * 2ffd051a696370a2422ff1b96af0c8cc1f50c57f UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] flinkbot commented on issue #11139: [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.

Posted by GitBox <gi...@apache.org>.
flinkbot commented on issue #11139:  [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.
URL: https://github.com/apache/flink/pull/11139#issuecomment-588228416
 
 
   <!--
   Meta data
   Hash:c550a19361c90006b335dc954b7ae0c3b176e7a1 Status:UNKNOWN URL:TBD TriggerType:PUSH TriggerID:c550a19361c90006b335dc954b7ae0c3b176e7a1
   -->
   ## CI report:
   
   * c550a19361c90006b335dc954b7ae0c3b176e7a1 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] flinkbot edited a comment on issue #11139: [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on issue #11139:  [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.
URL: https://github.com/apache/flink/pull/11139#issuecomment-588228416
 
 
   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "c550a19361c90006b335dc954b7ae0c3b176e7a1",
       "status" : "DELETED",
       "url" : "https://travis-ci.com/flink-ci/flink/builds/149633747",
       "triggerID" : "c550a19361c90006b335dc954b7ae0c3b176e7a1",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea",
       "status" : "SUCCESS",
       "url" : "https://travis-ci.com/flink-ci/flink/builds/150619440",
       "triggerID" : "e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=5610",
       "triggerID" : "e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2ffd051a696370a2422ff1b96af0c8cc1f50c57f",
       "status" : "PENDING",
       "url" : "https://travis-ci.com/flink-ci/flink/builds/150651063",
       "triggerID" : "2ffd051a696370a2422ff1b96af0c8cc1f50c57f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "77c59494bb11c3dc45c3ebe45ecdcd4ba16c09c0",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "77c59494bb11c3dc45c3ebe45ecdcd4ba16c09c0",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea Travis: [SUCCESS](https://travis-ci.com/flink-ci/flink/builds/150619440) Azure: [FAILURE](https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=5610) 
   * 2ffd051a696370a2422ff1b96af0c8cc1f50c57f Travis: [PENDING](https://travis-ci.com/flink-ci/flink/builds/150651063) 
   * 77c59494bb11c3dc45c3ebe45ecdcd4ba16c09c0 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] flinkbot edited a comment on issue #11139: [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on issue #11139:  [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.
URL: https://github.com/apache/flink/pull/11139#issuecomment-588228416
 
 
   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "c550a19361c90006b335dc954b7ae0c3b176e7a1",
       "status" : "DELETED",
       "url" : "https://travis-ci.com/flink-ci/flink/builds/149633747",
       "triggerID" : "c550a19361c90006b335dc954b7ae0c3b176e7a1",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea",
       "status" : "DELETED",
       "url" : "https://travis-ci.com/flink-ci/flink/builds/150619440",
       "triggerID" : "e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=5610",
       "triggerID" : "e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2ffd051a696370a2422ff1b96af0c8cc1f50c57f",
       "status" : "CANCELED",
       "url" : "https://travis-ci.com/flink-ci/flink/builds/150651063",
       "triggerID" : "2ffd051a696370a2422ff1b96af0c8cc1f50c57f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "77c59494bb11c3dc45c3ebe45ecdcd4ba16c09c0",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "77c59494bb11c3dc45c3ebe45ecdcd4ba16c09c0",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 2ffd051a696370a2422ff1b96af0c8cc1f50c57f Travis: [CANCELED](https://travis-ci.com/flink-ci/flink/builds/150651063) 
   * 77c59494bb11c3dc45c3ebe45ecdcd4ba16c09c0 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] flinkbot edited a comment on issue #11139: [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on issue #11139:  [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.
URL: https://github.com/apache/flink/pull/11139#issuecomment-588228416
 
 
   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "c550a19361c90006b335dc954b7ae0c3b176e7a1",
       "status" : "DELETED",
       "url" : "https://travis-ci.com/flink-ci/flink/builds/149633747",
       "triggerID" : "c550a19361c90006b335dc954b7ae0c3b176e7a1",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea",
       "status" : "SUCCESS",
       "url" : "https://travis-ci.com/flink-ci/flink/builds/150619440",
       "triggerID" : "e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=5610",
       "triggerID" : "e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea Travis: [SUCCESS](https://travis-ci.com/flink-ci/flink/builds/150619440) Azure: [FAILURE](https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=5610) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] pnowojski commented on a change in pull request #11139: [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.

Posted by GitBox <gi...@apache.org>.
pnowojski 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_r385571339
 
 

 ##########
 File path: flink-core/src/main/java/org/apache/flink/core/fs/FileSystem.java
 ##########
 @@ -440,8 +467,21 @@ public static FileSystem getUnguardedFileSystem(final URI fsUri) throws IOExcept
 				try (TemporaryClassLoaderContext ignored = TemporaryClassLoaderContext.of(classLoader)) {
 					fs = factory.create(uri);
 				}
-			}
-			else {
+			} else if (!ALLOWED_FALLBACK_FILESYSTEMS.contains(uri.getScheme()) &&
+					DIRECTLY_SUPPORTED_FILESYSTEM.containsKey(uri.getScheme())) {
+				final Collection<String> plugins = DIRECTLY_SUPPORTED_FILESYSTEM.get(uri.getScheme());
+				throw new UnsupportedFileSystemSchemeException(String.format(
+					"Could not find a file system implementation for scheme '%s'. The scheme is " +
+						"directly supported by Flink through the following plugin%s: %s. Please ensure that each " +
+						"plugin resides within its own subfolder within the plugins directory. See https://ci.apache" +
+						".org/projects/flink/flink-docs-stable/ops/plugins.html for more information. If you want to " +
+						"use a Hadoop file system for that scheme, please add the scheme to the configuration fs" +
+						".allowed-fallback-filesystems.",
+						uri.getScheme(),
+						plugins.size() == 1 ? "" : "s",
+						String.join(", ", plugins)
+					));
 
 Review comment:
   I'm not sure if I like the `DIRECTLY_SUPPORTED_FILESYSTEM` list, since if it drifts out of sync, it can start decreasing the usability.
   
   Maybe as a way to mitigate this issue, we should add a reference to https://ci.apache.org/projects/flink/flink-docs-stable/ops/filesystems/ for further/more precise  informations?

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] flinkbot edited a comment on issue #11139: [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on issue #11139:  [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.
URL: https://github.com/apache/flink/pull/11139#issuecomment-588228416
 
 
   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "c550a19361c90006b335dc954b7ae0c3b176e7a1",
       "status" : "DELETED",
       "url" : "https://travis-ci.com/flink-ci/flink/builds/149633747",
       "triggerID" : "c550a19361c90006b335dc954b7ae0c3b176e7a1",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea",
       "status" : "DELETED",
       "url" : "https://travis-ci.com/flink-ci/flink/builds/150619440",
       "triggerID" : "e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=5610",
       "triggerID" : "e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2ffd051a696370a2422ff1b96af0c8cc1f50c57f",
       "status" : "DELETED",
       "url" : "https://travis-ci.com/flink-ci/flink/builds/150651063",
       "triggerID" : "2ffd051a696370a2422ff1b96af0c8cc1f50c57f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "77c59494bb11c3dc45c3ebe45ecdcd4ba16c09c0",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "77c59494bb11c3dc45c3ebe45ecdcd4ba16c09c0",
       "triggerType" : "PUSH"
     }, {
       "hash" : "dfc656c0e56d0c8389953803fb6172cda1f87662",
       "status" : "DELETED",
       "url" : "https://travis-ci.com/flink-ci/flink/builds/150844855",
       "triggerID" : "dfc656c0e56d0c8389953803fb6172cda1f87662",
       "triggerType" : "PUSH"
     }, {
       "hash" : "903572997e4792d5777efd195f11ada6054d09ed",
       "status" : "SUCCESS",
       "url" : "https://travis-ci.com/flink-ci/flink/builds/150994612",
       "triggerID" : "903572997e4792d5777efd195f11ada6054d09ed",
       "triggerType" : "PUSH"
     }, {
       "hash" : "903572997e4792d5777efd195f11ada6054d09ed",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=5727",
       "triggerID" : "903572997e4792d5777efd195f11ada6054d09ed",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 77c59494bb11c3dc45c3ebe45ecdcd4ba16c09c0 UNKNOWN
   * 903572997e4792d5777efd195f11ada6054d09ed Travis: [SUCCESS](https://travis-ci.com/flink-ci/flink/builds/150994612) Azure: [SUCCESS](https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=5727) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] zentol commented on a change in pull request #11139: [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.

Posted by GitBox <gi...@apache.org>.
zentol 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_r381477468
 
 

 ##########
 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(
+					"Could not find a file system implementation for scheme '%s'. The scheme is " +
+						"directly supported by Flink through the following plugin%s: %s. Please ensure that each " +
 
 Review comment:
   ```suggestion
   						"directly supported by Flink through the following plugin%: %s. Please ensure that each " +
   ```

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] flinkbot edited a comment on issue #11139: [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on issue #11139:  [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.
URL: https://github.com/apache/flink/pull/11139#issuecomment-588228416
 
 
   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "c550a19361c90006b335dc954b7ae0c3b176e7a1",
       "status" : "SUCCESS",
       "url" : "https://travis-ci.com/flink-ci/flink/builds/149633747",
       "triggerID" : "c550a19361c90006b335dc954b7ae0c3b176e7a1",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * c550a19361c90006b335dc954b7ae0c3b176e7a1 Travis: [SUCCESS](https://travis-ci.com/flink-ci/flink/builds/149633747) 
   * e6562359dc3e289aa06de6a1a3dd0b2a5418e2ea UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] AHeise commented on issue #11139: [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.

Posted by GitBox <gi...@apache.org>.
AHeise commented on issue #11139:  [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.
URL: https://github.com/apache/flink/pull/11139#issuecomment-588796394
 
 
   > With this change, we do effectively forbid users to use S3 / OSS / Swift support through their Hadoop Classpath.
   > 
   > I am a bit torn whether we want that. What if there is a new version of the FS connector that you can use via Hadoop's FS support, but our own bundles file systems are not yet updated.
   > We could also think to reduce this to a "warning" instead of failing hard.
   
   A warning would also work for me. I also thought about a configuration to opt-in into Hadoop.
   I just saw the same issue arising once per month for users, that the plugins are misconfigured.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] StephanEwen commented on issue #11139: [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.

Posted by GitBox <gi...@apache.org>.
StephanEwen commented on issue #11139:  [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.
URL: https://github.com/apache/flink/pull/11139#issuecomment-590082628
 
 
   I am fine with initially blocking Hadoop FS for schemes we directly support, especially now that we have "unshaded" versions of them.
   
   If this occurs repeatedly on the Mailing List, then this is a good indication that the change here would be helpful.
   
   We can add an override, like Piotr suggested, if we see issues with that.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] AHeise commented on a change in pull request #11139: [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.

Posted by GitBox <gi...@apache.org>.
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] flinkbot commented on issue #11139: [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.

Posted by GitBox <gi...@apache.org>.
flinkbot commented on issue #11139:  [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.
URL: https://github.com/apache/flink/pull/11139#issuecomment-588204002
 
 
   Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community
   to review your pull request. We will use this comment to track the progress of the review.
   
   
   ## Automated Checks
   Last check on commit c550a19361c90006b335dc954b7ae0c3b176e7a1 (Wed Feb 19 12:36:02 UTC 2020)
   
   **Warnings:**
    * No documentation files were touched! Remember to keep the Flink docs up to date!
    * **This pull request references an unassigned [Jira ticket](https://issues.apache.org/jira/browse/FLINK-16015).** According to the [code contribution guide](https://flink.apache.org/contributing/contribute-code.html), tickets need to be assigned before starting with the implementation work.
   
   
   <sub>Mention the bot in a comment to re-run the automated checks.</sub>
   ## Review Progress
   
   * ❓ 1. The [description] looks good.
   * ❓ 2. There is [consensus] that the contribution should go into to Flink.
   * ❓ 3. Needs [attention] from.
   * ❓ 4. The change fits into the overall [architecture].
   * ❓ 5. Overall code [quality] is good.
   
   Please see the [Pull Request Review Guide](https://flink.apache.org/contributing/reviewing-prs.html) for a full explanation of the review process.<details>
    The Bot is tracking the review progress through labels. Labels are applied according to the order of the review items. For consensus, approval by a Flink committer of PMC member is required <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot approve description` to approve one or more aspects (aspects: `description`, `consensus`, `architecture` and `quality`)
    - `@flinkbot approve all` to approve all aspects
    - `@flinkbot approve-until architecture` to approve everything until `architecture`
    - `@flinkbot attention @username1 [@username2 ..]` to require somebody's attention
    - `@flinkbot disapprove architecture` to remove an approval you gave earlier
   </details>

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] AHeise commented on issue #11139: [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.

Posted by GitBox <gi...@apache.org>.
AHeise commented on issue #11139:  [FLINK-16015][filesystems]Throw an error when a plugin for a known scheme is missing.
URL: https://github.com/apache/flink/pull/11139#issuecomment-589670011
 
 
   @StephanEwen @zentol any verdict which way to go?

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services