Directory (file) cache never expires/shrinks

Bug #1458248 reported by Joshua Harlow
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
taskflow
Fix Released
High
Joshua Harlow

Bug Description

In the file/dir backend there is a cache of all used files (saved in memory), this data is used to avoid re-reading the same flow/atom/task/logbook details/information again and again, but there is one larger problem, in that the information cached in that backend is never expired (or removed after a size limit is reached); this means for a long lived backend with many engines using it that the cache size can eventually get very big (instead of only reaching a given size and then evicting entries).

Joshua Harlow (harlowja)
Changed in taskflow:
assignee: nobody → Joshua Harlow (harlowja)
milestone: none → next-liberty
importance: Undecided → High
Changed in taskflow:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to taskflow (master)

Reviewed: https://review.openstack.org/176104
Committed: https://git.openstack.org/cgit/openstack/taskflow/commit/?id=33e9ccc42566f4b666e04c1291bf01539288ffaf
Submitter: Jenkins
Branch: master

commit 33e9ccc42566f4b666e04c1291bf01539288ffaf
Author: Joshua Harlow <email address hidden>
Date: Tue Apr 21 12:49:06 2015 -0700

    Use a lru cache to limit the size of the internal file cache

    Instead of having an unbounded internal file cache which will
    eventually absorb all memory of the running/containing python
    process have the size of that cache be limited by an optionally
    provided size (and have eviction be based on how recent a cached
    entry was used).

    Fixes bug 1458248

    Change-Id: I5e59efc4edd51b05cfb1e67d3e7014e378e352aa

Changed in taskflow:
status: In Progress → Fix Committed
Changed in taskflow:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.