hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michajlo Matijkiw (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HTTPCLIENT-978) provide an ehcache implementation for HttpCache
Date Fri, 27 Aug 2010 14:49:54 GMT

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-978?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Michajlo Matijkiw updated HTTPCLIENT-978:

    Attachment: cache_update_exception.diff

I have renamed HttpCacheOperationException to HttpCacheUpdateException, and it no longer extends
IOException (you will probably have to delete HttpCacheOperationException.java after applying
the patch, it should be empty).  I spoke with Jonathan Moore and it was decided that this
is best since the exception should never make it outside of the cache module, and without
extending IOException the compiler will guarantee it.

CacheConfig now has a field for maximum number of update retries, and after that many failed
update retries, EhcacheHttpCacheStorage will throw the exception.  The exception is caught
by BasicHttpCache and a warning is logged.  While a failed update is not ideal, subsequent
accesses will re-validate the entry.

The tests were also updated to verify the behavior with failed updates.

This patch was submitted with the permission of my employer.


> provide an ehcache implementation for HttpCache
> -----------------------------------------------
>                 Key: HTTPCLIENT-978
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-978
>             Project: HttpComponents HttpClient
>          Issue Type: New Feature
>          Components: Cache
>            Reporter: Jonathan Moore
>             Fix For: 4.1 Alpha3
>         Attachments: cache_update_exception.diff, ehcache_w_serialization.patch, ehcache_w_serialization3.patch,
httpclient-cache_ehcache-patch.patch, httpclient-cache_ehcache-patch2.patch
> Provide an implementation of the HttpCache interface that stores cache entries in ehcache.

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

To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org

View raw message