camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henrik Filtenborg Sørensen (JIRA) <>
Subject [jira] [Created] (CAMEL-6189) Camel cache: CamelCacheCheck and expiry on cached elements
Date Wed, 20 Mar 2013 14:23:15 GMT
Henrik Filtenborg Sørensen created CAMEL-6189:

             Summary: Camel cache: CamelCacheCheck and expiry on cached elements
                 Key: CAMEL-6189
             Project: Camel
          Issue Type: Bug
          Components: camel-cache
    Affects Versions: 2.10.0, 2.11.0
         Environment: Windows
            Reporter: Henrik Filtenborg Sørensen
             Fix For: 2.11.0

The operation CamelCacheCheck does not check to see if the cache element is expired before
setting the header CamelCacheElementWasFound. This is due to the way isKeyInCache() from EHCache

I beleive the bug/quirk has existed since the very beginning of the camel-cache component.
The patch is made against 2.11.0-SNAPSHOT.

The patch uses getQuiet() instead of isKeyInCache(). getQuiet() checks for element expiry
before returning the element from the cache. getQuiet does not alter the cache element in
any way (usage statistics etc).

See the thread on Camel User Forum:

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message