Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0DD0D200BB6 for ; Fri, 4 Nov 2016 17:59:01 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 0C7CE160B07; Fri, 4 Nov 2016 16:59:01 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 5BB73160AEA for ; Fri, 4 Nov 2016 17:59:00 +0100 (CET) Received: (qmail 43831 invoked by uid 500); 4 Nov 2016 16:58:59 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 43495 invoked by uid 99); 4 Nov 2016 16:58:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Nov 2016 16:58:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id CEC6F2C2ABA for ; Fri, 4 Nov 2016 16:58:58 +0000 (UTC) Date: Fri, 4 Nov 2016 16:58:58 +0000 (UTC) From: "Grzegorz Grzybek (JIRA)" To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KARAF-4773) Leverage smart download retries from pax-url-aether 2.5.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 04 Nov 2016 16:59:01 -0000 [ https://issues.apache.org/jira/browse/KARAF-4773?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15636988#comment-15636988 ] Grzegorz Grzybek commented on KARAF-4773: ----------------------------------------- Fixed in {{master}} branch for 4.1.x: https://github.com/apache/karaf/commit/e4f9ead54c348d206ddedb3fd54444ec9fbf1cb8 > Leverage smart download retries from pax-url-aether 2.5.0 > --------------------------------------------------------- > > Key: KARAF-4773 > URL: https://issues.apache.org/jira/browse/KARAF-4773 > Project: Karaf > Issue Type: Improvement > Components: karaf-feature > Affects Versions: 4.0.7 > Reporter: Grzegorz Grzybek > Assignee: Grzegorz Grzybek > Fix For: 4.1.0 > > > https://ops4j1.jira.com/browse/PAXURL-337 adds _smart_ mechanism for consecutive download/resolution attempts. > For example, if {{org.ops4j.pax.url.mvn.repositories}} defines 10 repositories and 9 of them return HTTP 404 and 10th repository gives us "socket timeout", additional resolution attempt doesn't have to check those 9 repositories. > Also {{AbstractRetryableDownloadTask}} uses (by default) [9 retries|https://github.com/apache/karaf/blob/master/features/core/src/main/java/org/apache/karaf/features/internal/download/impl/AbstractRetryableDownloadTask.java#L32]. Even if this may be configured, retry task was designed for such problems as timeouts, or temporary unavailability of e.g., {{mvn:}} protocol handler. Using 9 attempts (with exponentially increasing delay) is not the right way to handle simple ArtifactNotFoundException... -- This message was sent by Atlassian JIRA (v6.3.4#6332)