You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Andras Salamon (JIRA)" <ji...@apache.org> on 2019/02/11 12:51:00 UTC

[jira] [Commented] (OOZIE-3430) Filter by endTime on Jobs servlet

    [ https://issues.apache.org/jira/browse/OOZIE-3430?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16764924#comment-16764924 ] 

Andras Salamon commented on OOZIE-3430:
---------------------------------------

The linked documentation lists the filter fields for workflow filtering. Although the documentation does not list the same {{createdtime}} field as a possible filter for coordinator and bundle filter, according to the source code we can use the same fields when we search for coordinators or bundles. We should also add the new {{endTime}} fields to there. It might also be useful to eliminate the code repetition. The list of filter fields are very similar and listed three times: [JobsFilterUtils|https://github.com/apache/oozie/blob/master/core/src/main/java/org/apache/oozie/util/JobsFilterUtils.java#L40-L49], [CoordinatorEngine|https://github.com/apache/oozie/blob/master/core/src/main/java/org/apache/oozie/CoordinatorEngine.java#L515-L527], [DagEngine|https://github.com/apache/oozie/blob/master/core/src/main/java/org/apache/oozie/DagEngine.java#L402-L412]

It might also be a good opportunity to add more filter fields, like OOZIE-3229 added lots of fields for [SLA filtering|https://oozie.apache.org/docs/5.1.0/DG_SLAMonitoring.html#Accessing_SLA_Information].

Naming the new fields are also tricky. Right now we use {{startcreatedtime}} and {{endcreatedtime}}, so the new names should be {{startendtime}}, {{endendtime}}. The latter one is not the nicest name.

We should also fix the documentation, since the list of fields are not correct, for instance it is also possible to filter for {{id}} which is not listed.

> Filter by endTime on Jobs servlet
> ---------------------------------
>
>                 Key: OOZIE-3430
>                 URL: https://issues.apache.org/jira/browse/OOZIE-3430
>             Project: Oozie
>          Issue Type: Improvement
>            Reporter: Peter Orova
>            Priority: Minor
>
> As per [documentation | https://oozie.apache.org/docs/5.1.0/DG_CommandLineTool.html#Checking_the_Status_of_multiple_Workflow_Jobs] when retrieving the information on multiple jobs the only time-related filter is based on {{createdtime}}. Propose to add filters for {{endTime}}. 
> Use case: display jobs having finished in the last n minutes. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)