OpenJPA
  1. OpenJPA
  2. OPENJPA-1531

The DataCache EvictionSchedule property should accept other time formats.

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-beta, 2.0.0-beta2
    • Fix Version/s: 2.0.0-beta3
    • Component/s: datacache
    • Labels:
      None

      Description

      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.

        Activity

        Rick Curtis created issue -
        Hide
        Rick Curtis added a comment -

        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.

        Show
        Rick Curtis added a comment - 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.
        Hide
        Rick Curtis added a comment -

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

        Show
        Rick Curtis added a comment - Committed code, test, and doc to trunk. rev.916052
        Rick Curtis made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.0.0 [ 12314019 ]
        Resolution Fixed [ 1 ]
        Donald Woods made changes -
        Affects Version/s 2.0.0-beta [ 12314149 ]
        Affects Version/s 2.0.0-beta2 [ 12314802 ]
        Donald Woods made changes -
        Fix Version/s 2.0.0-beta3 [ 12314857 ]
        Fix Version/s 2.0.0 [ 12314019 ]
        Donald Woods made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        1d 3h 31m 1 Rick Curtis 25/Feb/10 00:14
        Resolved Resolved Closed Closed
        32d 23h 3m 1 Donald Woods 30/Mar/10 00:17

          People

          • Assignee:
            Rick Curtis
            Reporter:
            Rick Curtis
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development