You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/06/04 10:50:00 UTC
[jira] [Commented] (FLINK-9398) Flink CLI list running job returns
all jobs except in CREATE state
[ https://issues.apache.org/jira/browse/FLINK-9398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16500041#comment-16500041 ]
ASF GitHub Bot commented on FLINK-9398:
---------------------------------------
Github user zentol commented on a diff in the pull request:
https://github.com/apache/flink/pull/6049#discussion_r192699721
--- Diff: flink-clients/src/main/java/org/apache/flink/client/cli/CliFrontend.java ---
@@ -474,6 +482,19 @@ protected void list(String[] args) throws Exception {
System.out.println("--------------------------------------------------------------");
}
}
+ if (showRemaining) {
+ if (remainingJobs.size() != 0) {
+ remainingJobs.sort(startTimeComparator);
--- End diff --
given the existing pattern of separating by `JobStatus` we may want to do the same for the remaining jobs.
```
runningJobs.stream().collect(Collectors.groupingBy(JobStatusMessage::getJobState))
.entrySet().stream().sorted(<sort by JobStatus>)
.map(Map.Entry::getValue).flatMap(List::stream).sorted(<sort by timestamp>).forEachOrdered(<print>);
```
> Flink CLI list running job returns all jobs except in CREATE state
> ------------------------------------------------------------------
>
> Key: FLINK-9398
> URL: https://issues.apache.org/jira/browse/FLINK-9398
> Project: Flink
> Issue Type: Bug
> Components: Client
> Affects Versions: 1.5.0
> Reporter: Rong Rong
> Assignee: Rong Rong
> Priority: Major
>
> See: https://github.com/apache/flink/blob/4922ced71a307a26b9f5070b41f72fd5d93b0ac8/flink-clients/src/main/java/org/apache/flink/client/cli/CliFrontend.java#L437-L445
> Seems like CLI command: *flink list -r* returns all jobs except jobs in *CREATE* state. which conflicts with the CLI description: *Running/Restarting Jobs*.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)