From: Nicolas De Loof Date: Fri, 11 Jan 2008 09:10:06 +0000 (+0000) Subject: reverted preivous change : cacheFailure is shared between connectors and has side... X-Git-Tag: archiva-1.0.1~19 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dbf1b8785443f862b0ce8d194db25879fd35d3e0;p=archiva.git reverted preivous change : cacheFailure is shared between connectors and has side effects git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@611116 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-base/archiva-proxy/src/main/java/org/apache/maven/archiva/proxy/DefaultRepositoryProxyConnectors.java b/archiva-base/archiva-proxy/src/main/java/org/apache/maven/archiva/proxy/DefaultRepositoryProxyConnectors.java index be4ad1112..5b3d1a515 100644 --- a/archiva-base/archiva-proxy/src/main/java/org/apache/maven/archiva/proxy/DefaultRepositoryProxyConnectors.java +++ b/archiva-base/archiva-proxy/src/main/java/org/apache/maven/archiva/proxy/DefaultRepositoryProxyConnectors.java @@ -524,11 +524,6 @@ public class DefaultRepositoryProxyConnectors getLogger().info( emsg ); return null; } - - if ( urlFailureCache.hasFailedBefore( url ) ) - { - throw new NotFoundException( "Url has failed before and cache-failure is enabled on this connector" ); - } Wagon wagon = null; try @@ -552,10 +547,7 @@ public class DefaultRepositoryProxyConnectors } catch ( NotFoundException e ) { - // public repositories may be slow to access, and many request will fail when - // muliple repositories are "merged" by archiva via proxies. - // so caching "not found" is usefull here to enhance archiva response-time - urlFailureCache.cacheFailure( url ); + // Do not cache url here. throw e; } catch ( NotModifiedException e )