Return-Path: X-Original-To: apmail-hc-dev-archive@www.apache.org Delivered-To: apmail-hc-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 674E4B984 for ; Thu, 12 Jan 2012 13:52:14 +0000 (UTC) Received: (qmail 70021 invoked by uid 500); 12 Jan 2012 13:52:14 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 69467 invoked by uid 500); 12 Jan 2012 13:52:06 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 69390 invoked by uid 99); 12 Jan 2012 13:52:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jan 2012 13:52:01 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jan 2012 13:51:59 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id BA81E1476CD for ; Thu, 12 Jan 2012 13:51:39 +0000 (UTC) Date: Thu, 12 Jan 2012 13:51:39 +0000 (UTC) From: "Jon Moore (Commented) (JIRA)" To: dev@hc.apache.org Message-ID: <70203296.34502.1326376299766.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <666637700.11708.1325800359443.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HTTPCLIENT-1157) MemcachedHttpCacheStorage should throw IOExceptions instead of Runtime Exceptions MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HTTPCLIENT-1157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13184965#comment-13184965 ] Jon Moore commented on HTTPCLIENT-1157: --------------------------------------- @Oleg: I see you beat me to it. Thanks. :) > MemcachedHttpCacheStorage should throw IOExceptions instead of Runtime Exceptions > --------------------------------------------------------------------------------- > > Key: HTTPCLIENT-1157 > URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1157 > Project: HttpComponents HttpClient > Issue Type: Bug > Components: Cache > Affects Versions: 4.2 Alpha1 > Reporter: James Miller > Assignee: Jon Moore > Labels: cache > Fix For: 4.1.3, 4.2 Alpha2 > > Attachments: HTTPCLIENT-1157.patch, httpclient-1157-2.patch > > > The MemcachedHttpCacheStorage class implements HttpCacheStorage which defines that methods will throw IOExceptions, but the underlying net.spy.memcached.MemcachedClientIF throws runtime exceptions. These exceptions are not caught in the code where IOExceptions are expected causing these exception bubble up to the calling code. It seems like the MemcachedHttpCacheStorage class should treat at least some of these runtime exceptions as IOExceptions so that normal code execution paths can be followed. > I'm proposing that MemcachedHttpCacheStorage treat a OperationTimeoutException from the memcached client as an IOException. This would allow the existing CachingHttpClient code to catch and log the exception as a warning, instead of bubbling the exception up the calling code. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org