Github user zentol commented on a diff in the pull request:
https://github.com/apache/flink/pull/4951#discussion_r149069349
--- Diff:
flink-yarn/src/main/java/org/apache/flink/yarn/AbstractYarnClusterDescriptor.java
---
@@ -186,6 +186,8 @@ public void addShipFiles(List<File> shipFiles) {
for (File shipFile: shipFiles) {
// remove uberjar from ship list (by default everything
in the lib/ folder is added to
// the list of files to ship, but we handle the uberjar
separately.
+ // NOTE: this does not filter the uberjar if added
recursively, e.g. by having the "lib"
+ // folder in the shipFiles
if (!(shipFile.getName().startsWith("flink-dist") &&
shipFile.getName().endsWith("jar"))) {
--- End diff --
this filtering seems redundant now, the non-directory branch in
`uploadAndRegisterFiles` should catch it.
We may want to pull the directory expansion into this method instead, and
keep uploadAndRegisterFiles as a dumb upload method.
---