[
https://issues.apache.org/jira/browse/OOZIE-1930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14065777#comment-14065777
]
Purshotam Shah commented on OOZIE-1930:
---------------------------------------
Comment on Patch.
{code}
+ sb.append("and a.id >= ");
+
sb.append("\'").append(coordJob.getId()).append("@").append(startIdx).append("\'");
+ sb.append(" and a.id < ");
+
sb.append("\'").append(coordJob.getId()).append("@").append(endIdx).append("\'
");
{code}
This will not work, 12 < 4 . You are doing string comparison not integer.
{code}
int startIdx = coordJob.getLastActionNumber() - len + 1;
startIdx = startIdx > start ? startIdx: start;
{code}
Assuming that we have 14 action. If I use offest 3 and lenth 4, then it should
give me action 6,5,4,3. This is not happening here.
I see that biggest issue here is that we are trying to interpret "len" as
"action number", which is not true.
> 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
> Attachments: oozie-1930.patch
>
>
--
This message was sent by Atlassian JIRA
(v6.2#6252)