Github user hsaputra commented on a diff in the pull request: https://github.com/apache/flink/pull/394#discussion_r24689710 --- Diff: flink-clients/src/main/java/org/apache/flink/client/CliFrontend.java --- @@ -517,67 +521,83 @@ protected int list(String[] args) { return 1; } - Iterable<ExecutionGraph> jobs = AkkaUtils.<RunningJobs>ask(jobManager, - RequestRunningJobs$.MODULE$, getAkkaTimeout()).asJavaIterable(); + final Future<Object> response = Patterns.ask(jobManager, + JobManagerMessages.getRequestRunningJobs(), new Timeout(getAkkaTimeout())); - ArrayList<ExecutionGraph> runningJobs = null; - ArrayList<ExecutionGraph> scheduledJobs = null; - if (running) { - runningJobs = new ArrayList<ExecutionGraph>(); - } - if (scheduled) { - scheduledJobs = new ArrayList<ExecutionGraph>(); + Object result = null; + + try{ --- End diff -- More like nit style change. Most code in Flink add a space before '{'.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---