Ticket #608 (closed defect: fixed)
Caching leaves room for potential race condition
| Reported by: | Felix Gilcher <mailing_lists@…> | Owned by: | david |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.11 |
| Component: | filter | Version: | HEAD |
| Severity: | normal | Keywords: | AgaviExecutionFilter Cache Race Condition |
| Cc: | Patch attached: |
Description
Currently, the AgaviExecution? filter calls checkCache() to see wether an action has been cached and then readCache() to retrieve the cached values. However, no checking is done on the return value of readCache() so that in multithreaded environements a clearCache() call from another thread might happen inbetween the check and the read, leading to an error.
Solution: check the result of the readCache operation and act accordingly (if fail, treat action as not cached).
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

