karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Grzegorz Grzybek (JIRA)" <j...@apache.org>
Subject [jira] [Issue Comment Deleted] (KARAF-4773) Leverage smart download retries from pax-url-aether 2.5.0
Date Fri, 04 Nov 2016 18:01:59 GMT

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

Grzegorz Grzybek updated KARAF-4773:
------------------------------------
    Comment: was deleted

(was: 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, 4.0.8
>
>
> 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)

Mime
View raw message