Github user GJL commented on a diff in the pull request:
https://github.com/apache/flink/pull/5220#discussion_r159425958
--- Diff:
flink-clients/src/main/java/org/apache/flink/client/cli/CliFrontend.java ---
@@ -274,19 +251,13 @@ protected int run(String[] args) {
return executeProgram(program, client, userParallelism);
}
- catch (Throwable t) {
- return handleError(t);
- }
finally {
- if (client != null) {
- try {
- client.shutdown();
- } catch (Exception e) {
- LOG.warn("Could not properly shut down
the cluster client.", e);
- }
- }
- if (program != null) {
- program.deleteExtractedLibraries();
+ program.deleteExtractedLibraries();
--- End diff --
This won't run if `createClient()` fails. Before the client creation was
inside the `try` block.
---