GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Use the Maven resolver retry properties in CI instead of the Wagon ones by normanmaurer · Pull Request #18576 · netty/netty

Conversation

@normanmaurer

@normanmaurer normanmaurer commented Nov 27, 2026

Copy link
Copy Markdown
Member

Motivation:

The CI workflows set -Dmaven.wagon.http.retryhandler.count=5 (and the
related pool and TTL properties) to survive transient download failures
and rate limiting by Maven Central. Maven 3.9, which is what we use
through the wrapper, uses the native HTTP transport of Maven Resolver by
default and not Wagon. These properties are only read by the Wagon
transport, so the build always ran with the resolver defaults: 3 retries
that wait 5, 10 and 15 seconds.

Modification:

  • Replace the Wagon properties in all workflows:
    • maven.wagon.http.retryhandler.count=5 becomes
      aether.connector.http.retryHandler.count=5.
    • Set aether.connector.http.retryHandler.interval=10000. If the server
      sends no Retry-After header the resolver waits attempt * interval
      between retries, so it now waits 10, 20, 30, 40 and 50 seconds
      (before: 5, 10, 15).
    • maven.wagon.httpconnectionManager.ttlSeconds=240 becomes
      aether.connector.http.connectionMaxTtl=240.
    • Remove maven.wagon.http.pool=false, there is no reason to disable
      connection reuse of the native transport.

Result:

Downloads that are answered with 429 or 503 (the resolver retries both by
default, and uses Retry-After when it is present) are retried more often
and for longer before the build fails. This does not reduce the number of
requests, see #18575 for that.

A request that is still rate limited now delays the build by up to 150
seconds per artifact before it fails, instead of 30.

Checked that Maven starts with the new options and against the
properties and defaults in the bundled maven-resolver 1.9.24. It was not
run against a rate limited server, as the sandbox does not allow it.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@normanmaurer
Use the Maven resolver retry properties in CI instead of the Wagon ones
1d33de3
Motivation:

The CI workflows set -Dmaven.wagon.http.retryhandler.count=5 (and the
related pool and TTL properties) to survive transient download failures
and rate limiting by Maven Central. Maven 3.9, which is what we use
through the wrapper, uses the native HTTP transport of Maven Resolver by
default and not Wagon. These properties are only read by the Wagon
transport, so the build always ran with the resolver defaults: 3 retries
that wait 5, 10 and 15 seconds.

Modification:

- Replace the Wagon properties in all workflows:
  - maven.wagon.http.retryhandler.count=5 becomes
    aether.connector.http.retryHandler.count=5.
  - Set aether.connector.http.retryHandler.interval=10000. If the server
    sends no Retry-After header the resolver waits attempt * interval
    between retries, so it now waits 10, 20, 30, 40 and 50 seconds
    (before: 5, 10, 15).
  - maven.wagon.httpconnectionManager.ttlSeconds=240 becomes
    aether.connector.http.connectionMaxTtl=240.
  - Remove maven.wagon.http.pool=false, there is no reason to disable
    connection reuse of the native transport.

Result:

Downloads that are answered with 429 or 503 (the resolver retries both by
default, and uses Retry-After when it is present) are retried more often
and for longer before the build fails. This does not reduce the number of
requests, see netty#18575 for that.

A request that is still rate limited now delays the build by up to 150
seconds per artifact before it fails, instead of 30.

Checked that Maven starts with the new options and against the
properties and defaults in the bundled maven-resolver 1.9.24. It was not
run against a rate limited server, as the sandbox does not allow it.
@normanmaurer normanmaurer added this to the 4.2.22.Final milestone Nov 27, 2026
@testlens-app

testlens-app Bot commented Nov 27, 2026

Copy link
Copy Markdown

✅ All tests passed ✅

🏷️ Commit: 1d33de3
▶️ Tests: 372199 executed
⚪️ Checks: 26/26 completed


Learn more about TestLens at testlens.app/docs.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

4.2.22.Final

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@normanmaurer
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.