You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oozie.apache.org by "Hadoop QA (JIRA)" <ji...@apache.org> on 2011/09/08 06:27:09 UTC
[jira] [Commented] (OOZIE-86) GH-46: Add support the coordiator job
submitted to run in far future
[ https://issues.apache.org/jira/browse/OOZIE-86?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13099784#comment-13099784 ]
Hadoop QA commented on OOZIE-86:
--------------------------------
angelokh remarked:
XLogStreamer.FileInfo has a compareTo(). This should be taken care too.
> GH-46: Add support the coordiator job submitted to run in far future
> --------------------------------------------------------------------
>
> Key: OOZIE-86
> URL: https://issues.apache.org/jira/browse/OOZIE-86
> Project: Oozie
> Issue Type: Bug
> Reporter: Hadoop QA
>
> The following code in PriorityDelayQueue.java class
> public int compareTo(Delayed o) {
> return (int) (getDelay(TimeUnit.MILLISECONDS) - o.getDelay(TimeUnit.MILLISECONDS));
> }
> should be replace by something like this:
> public int compareTo(Delayed o) {
> long diff = (getDelay(TimeUnit.MILLISECONDS) - o.getDelay(TimeUnit.MILLISECONDS));
> if(diff > 0) {
> return 1;
> } else if(diff < 0) {
> return -1;
> } else {
> return 0;
> }
> }
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira