aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-base
diff options
context:
space:
mode:
authorNicolas De Loof <nicolas@apache.org>2008-01-11 09:10:06 +0000
committerNicolas De Loof <nicolas@apache.org>2008-01-11 09:10:06 +0000
commitdbf1b8785443f862b0ce8d194db25879fd35d3e0 (patch)
tree5df75899adc47b357643c3ee92d48cb0cf1543b8 /archiva-base
parent5b6f499ad9ab987228b673e2142053cd022b3501 (diff)
downloadarchiva-dbf1b8785443f862b0ce8d194db25879fd35d3e0.tar.gz
archiva-dbf1b8785443f862b0ce8d194db25879fd35d3e0.zip
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
Diffstat (limited to 'archiva-base')
-rw-r--r--archiva-base/archiva-proxy/src/main/java/org/apache/maven/archiva/proxy/DefaultRepositoryProxyConnectors.java10
1 files changed, 1 insertions, 9 deletions
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 )