You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Rick Curtis (JIRA)" <ji...@apache.org> on 2010/02/23 21:45:28 UTC

[jira] Created: (OPENJPA-1531) The DataCache EvictionSchedule property should accept other time formats.

The DataCache EvictionSchedule property should accept other time formats.
-------------------------------------------------------------------------

                 Key: OPENJPA-1531
                 URL: https://issues.apache.org/jira/browse/OPENJPA-1531
             Project: OpenJPA
          Issue Type: Improvement
          Components: datacache
            Reporter: Rick Curtis
            Assignee: Rick Curtis


Currently the DataCache EvictionSchedule only allows for a CRON style syntax. 
For example: To evict my cache every 10 minutes I would need to set : EvictionSchedule="10,20,30,40,50,60 * * * *" 

I'd like to support an interval syntax which would allow a user to say 'Run every [x] minutes.' After looking through the code it would easy enough to support EvictionSchedule="+[x]".  (x in minutes)

I also found that the testcase for the DataCacheScheduler has never been enabled. I'm not certain whether it wasn't enabled because it takes so long to run, or whether there are other bugs. 

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


[jira] Resolved: (OPENJPA-1531) The DataCache EvictionSchedule property should accept other time formats.

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

Rick Curtis resolved OPENJPA-1531.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0

Committed code, test, and doc to trunk. rev.916052 

> The DataCache EvictionSchedule property should accept other time formats.
> -------------------------------------------------------------------------
>
>                 Key: OPENJPA-1531
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1531
>             Project: OpenJPA
>          Issue Type: Improvement
>          Components: datacache
>            Reporter: Rick Curtis
>            Assignee: Rick Curtis
>             Fix For: 2.0.0
>
>
> Currently the DataCache EvictionSchedule only allows for a CRON style syntax. 
> For example: To evict my cache every 10 minutes I would need to set : EvictionSchedule="10,20,30,40,50,60 * * * *" 
> I'd like to support an interval syntax which would allow a user to say 'Run every [x] minutes.' After looking through the code it would easy enough to support EvictionSchedule="+[x]".  (x in minutes)
> I also found that the testcase for the DataCacheScheduler has never been enabled. I'm not certain whether it wasn't enabled because it takes so long to run, or whether there are other bugs. 

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


[jira] Commented: (OPENJPA-1531) The DataCache EvictionSchedule property should accept other time formats.

Posted by "Rick Curtis (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-1531?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12838108#action_12838108 ] 

Rick Curtis commented on OPENJPA-1531:
--------------------------------------

Added a new test case which I don't care for. 

Unfortunately the DataCacheScheduler runs on minute intervals rather than seconds. That means that the test case that I added takes something like 3+ minutes to run, but it is sleeping 99% of the time. 

> The DataCache EvictionSchedule property should accept other time formats.
> -------------------------------------------------------------------------
>
>                 Key: OPENJPA-1531
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1531
>             Project: OpenJPA
>          Issue Type: Improvement
>          Components: datacache
>            Reporter: Rick Curtis
>            Assignee: Rick Curtis
>
> Currently the DataCache EvictionSchedule only allows for a CRON style syntax. 
> For example: To evict my cache every 10 minutes I would need to set : EvictionSchedule="10,20,30,40,50,60 * * * *" 
> I'd like to support an interval syntax which would allow a user to say 'Run every [x] minutes.' After looking through the code it would easy enough to support EvictionSchedule="+[x]".  (x in minutes)
> I also found that the testcase for the DataCacheScheduler has never been enabled. I'm not certain whether it wasn't enabled because it takes so long to run, or whether there are other bugs. 

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


[jira] Updated: (OPENJPA-1531) The DataCache EvictionSchedule property should accept other time formats.

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

Donald Woods updated OPENJPA-1531:
----------------------------------

    Affects Version/s: 2.0.0-beta2
                       2.0.0-beta

> The DataCache EvictionSchedule property should accept other time formats.
> -------------------------------------------------------------------------
>
>                 Key: OPENJPA-1531
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1531
>             Project: OpenJPA
>          Issue Type: Improvement
>          Components: datacache
>    Affects Versions: 2.0.0-beta, 2.0.0-beta2
>            Reporter: Rick Curtis
>            Assignee: Rick Curtis
>             Fix For: 2.0.0
>
>
> Currently the DataCache EvictionSchedule only allows for a CRON style syntax. 
> For example: To evict my cache every 10 minutes I would need to set : EvictionSchedule="10,20,30,40,50,60 * * * *" 
> I'd like to support an interval syntax which would allow a user to say 'Run every [x] minutes.' After looking through the code it would easy enough to support EvictionSchedule="+[x]".  (x in minutes)
> I also found that the testcase for the DataCacheScheduler has never been enabled. I'm not certain whether it wasn't enabled because it takes so long to run, or whether there are other bugs. 

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