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

Shwetha G S commented on OOZIE-1930:
------------------------------------

My bad, its offset (Since it was called start in code, I thought even the param 
was start). 

{quote}
So "oozie job -info <id> -offset 12 -len 5 [-order desc]" should return C16 to 
C20
{quote}
Since offset is the start action number of the coord, why will this command 
return C16 to C20. Shouldn't this start at C12(offset 12) and return 5 actions 
in descending order, which is C16 to C12?

{quote}
When "offset" is not specified, it means "offset=1"
{quote}
Then, 'oozie job -info <id> -len 5 [-order desc]' would mean 'oozie job -info 
<id> -len 5 -order desc -offset 1' which would return C5 to C1 which are not 
there in DB? Instead, it makes sense to not apply offset when not specified and 
instead run the query on all actions in DB. In this case, it will return C20 to 
C16 which is meaningful query results. Going by the same rules, oozie job -info 
<id> -len 5 -order asc --> returns C@11 to C15


> oozie coordinator "-info desc" returns earliest instead of latest actions 
> when specifying "len" after oozie-1532
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: OOZIE-1930
>                 URL: https://issues.apache.org/jira/browse/OOZIE-1930
>             Project: Oozie
>          Issue Type: Bug
>            Reporter: Bowen Zhang
>            Assignee: Bowen Zhang
>             Fix For: 4.1.0
>
>         Attachments: oozie-1930.patch, oozie-1930.patch
>
>
>   This one definitely needs to be part of 4.1



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to