You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Scott Gray (JIRA)" <ji...@apache.org> on 2009/09/28 05:15:16 UTC

[jira] Created: (OFBIZ-2974) JobManager.reloadCrashedJobs fails to reload crashed jobs

JobManager.reloadCrashedJobs fails to reload crashed jobs
---------------------------------------------------------

                 Key: OFBIZ-2974
                 URL: https://issues.apache.org/jira/browse/OFBIZ-2974
             Project: OFBiz
          Issue Type: Bug
          Components: framework
    Affects Versions: SVN trunk
            Reporter: Scott Gray
            Priority: Critical


The JobManager.reloadCrashedJobs() method fails to reload most crashed jobs each time it is run, this occurs for two reasons:
1.  The method only supports reloading jobs that have a related RecurrenceInfo, if it has no recurrence information or if it uses the newer temporal expressions then the job is passed over and not reloaded
2.  If the job does have a related RecurrenceInfo then the method checks to see if the next recurrence from now is less than the runTime of the crashed job, this is almost never the case so once again the job isn't reloaded.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (OFBIZ-2974) JobManager.reloadCrashedJobs fails to reload crashed jobs

Posted by "Scott Gray (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-2974?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Scott Gray reassigned OFBIZ-2974:
---------------------------------

    Assignee: Scott Gray

> JobManager.reloadCrashedJobs fails to reload crashed jobs
> ---------------------------------------------------------
>
>                 Key: OFBIZ-2974
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2974
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Scott Gray
>            Assignee: Scott Gray
>            Priority: Critical
>             Fix For: SVN trunk
>
>
> The JobManager.reloadCrashedJobs() method fails to reload most crashed jobs each time it is run, this occurs for two reasons:
> 1.  The method only supports reloading jobs that have a related RecurrenceInfo, if it has no recurrence information or if it uses the newer temporal expressions then the job is passed over and not reloaded
> 2.  If the job does have a related RecurrenceInfo then the method checks to see if the next recurrence from now is less than the runTime of the crashed job, this is almost never the case so once again the job isn't reloaded.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OFBIZ-2974) JobManager.reloadCrashedJobs fails to reload crashed jobs

Posted by "Scott Gray (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-2974?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12800800#action_12800800 ] 

Scott Gray commented on OFBIZ-2974:
-----------------------------------

Also fixed in 9.04 r899718

> JobManager.reloadCrashedJobs fails to reload crashed jobs
> ---------------------------------------------------------
>
>                 Key: OFBIZ-2974
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2974
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Scott Gray
>            Assignee: Scott Gray
>            Priority: Critical
>             Fix For: Release Branch 9.04, SVN trunk
>
>
> The JobManager.reloadCrashedJobs() method fails to reload most crashed jobs each time it is run, this occurs for two reasons:
> 1.  The method only supports reloading jobs that have a related RecurrenceInfo, if it has no recurrence information or if it uses the newer temporal expressions then the job is passed over and not reloaded
> 2.  If the job does have a related RecurrenceInfo then the method checks to see if the next recurrence from now is less than the runTime of the crashed job, this is almost never the case so once again the job isn't reloaded.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OFBIZ-2974) JobManager.reloadCrashedJobs fails to reload crashed jobs

Posted by "Marc Morin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-2974?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12798650#action_12798650 ] 

Marc Morin commented on OFBIZ-2974:
-----------------------------------

Has anyone else run into this?  Seems like this is a core problem in the framework.

> JobManager.reloadCrashedJobs fails to reload crashed jobs
> ---------------------------------------------------------
>
>                 Key: OFBIZ-2974
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2974
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Scott Gray
>            Priority: Critical
>
> The JobManager.reloadCrashedJobs() method fails to reload most crashed jobs each time it is run, this occurs for two reasons:
> 1.  The method only supports reloading jobs that have a related RecurrenceInfo, if it has no recurrence information or if it uses the newer temporal expressions then the job is passed over and not reloaded
> 2.  If the job does have a related RecurrenceInfo then the method checks to see if the next recurrence from now is less than the runTime of the crashed job, this is almost never the case so once again the job isn't reloaded.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OFBIZ-2974) JobManager.reloadCrashedJobs fails to reload crashed jobs

Posted by "Scott Gray (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-2974?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12798787#action_12798787 ] 

Scott Gray commented on OFBIZ-2974:
-----------------------------------

Hi Marc,

At the time I looked back in the commit history and it appears things have always been this way, so I think it's safe to say everyone has run into this, be it knowingly or not.

Fixing this is on my todo list but in the meantime any patches would be most welcome.

> JobManager.reloadCrashedJobs fails to reload crashed jobs
> ---------------------------------------------------------
>
>                 Key: OFBIZ-2974
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2974
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Scott Gray
>            Priority: Critical
>
> The JobManager.reloadCrashedJobs() method fails to reload most crashed jobs each time it is run, this occurs for two reasons:
> 1.  The method only supports reloading jobs that have a related RecurrenceInfo, if it has no recurrence information or if it uses the newer temporal expressions then the job is passed over and not reloaded
> 2.  If the job does have a related RecurrenceInfo then the method checks to see if the next recurrence from now is less than the runTime of the crashed job, this is almost never the case so once again the job isn't reloaded.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (OFBIZ-2974) JobManager.reloadCrashedJobs fails to reload crashed jobs

Posted by "Scott Gray (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-2974?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Scott Gray updated OFBIZ-2974:
------------------------------

    Fix Version/s: Release Branch 9.04

> JobManager.reloadCrashedJobs fails to reload crashed jobs
> ---------------------------------------------------------
>
>                 Key: OFBIZ-2974
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2974
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Scott Gray
>            Assignee: Scott Gray
>            Priority: Critical
>             Fix For: Release Branch 9.04, SVN trunk
>
>
> The JobManager.reloadCrashedJobs() method fails to reload most crashed jobs each time it is run, this occurs for two reasons:
> 1.  The method only supports reloading jobs that have a related RecurrenceInfo, if it has no recurrence information or if it uses the newer temporal expressions then the job is passed over and not reloaded
> 2.  If the job does have a related RecurrenceInfo then the method checks to see if the next recurrence from now is less than the runTime of the crashed job, this is almost never the case so once again the job isn't reloaded.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (OFBIZ-2974) JobManager.reloadCrashedJobs fails to reload crashed jobs

Posted by "Scott Gray (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-2974?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Scott Gray closed OFBIZ-2974.
-----------------------------

       Resolution: Fixed
    Fix Version/s: SVN trunk

Fixed in r899716

> JobManager.reloadCrashedJobs fails to reload crashed jobs
> ---------------------------------------------------------
>
>                 Key: OFBIZ-2974
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2974
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Scott Gray
>            Assignee: Scott Gray
>            Priority: Critical
>             Fix For: SVN trunk
>
>
> The JobManager.reloadCrashedJobs() method fails to reload most crashed jobs each time it is run, this occurs for two reasons:
> 1.  The method only supports reloading jobs that have a related RecurrenceInfo, if it has no recurrence information or if it uses the newer temporal expressions then the job is passed over and not reloaded
> 2.  If the job does have a related RecurrenceInfo then the method checks to see if the next recurrence from now is less than the runTime of the crashed job, this is almost never the case so once again the job isn't reloaded.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.