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 — [improve][build] Upgrade Netty to 4.2.21.Final to restore the aarch64 glibc floor and pick up bug fixes by lhotari · Pull Request #27654 · apache/pulsar

Conversation

@lhotari

@lhotari lhotari commented Nov 17, 2026

Copy link
Copy Markdown
Member

Motivation

Netty 4.2.21.Final is a bug-fix release. The release notes list no security advisories.

glibc floor regression in 4.2.20. A build mistake in 4.2.20.Final raised the glibc requirement of the Linux native transports to 2.33 (netty/netty#18365: linking against lstat(2) pulled in a GLIBC_2.33 symbol). Pulsar currently ships 4.2.20.Final. On aarch64 Linux hosts with an older glibc (for example RHEL/Rocky 8 with glibc 2.28, or Amazon Linux 2 with glibc 2.26), the epoll and io_uring natives therefore fail to load, and Netty falls back to NIO. 4.2.21.Final brings the floor back down. Checked by running strings on the .so files in the published jars:

Jar (linux) 4.2.20.Final 4.2.21.Final
netty-transport-native-epoll x86_64 GLIBC_2.14 GLIBC_2.14
netty-transport-native-epoll aarch_64 GLIBC_2.33 GLIBC_2.17
netty-transport-native-io_uring x86_64 GLIBC_2.14 GLIBC_2.14
netty-transport-native-io_uring aarch_64 GLIBC_2.33 GLIBC_2.17

Other fixes in areas Pulsar uses, for example:

  • SslHandler: stop wrapping when the transport can not keep up (#18253); resume when the delegated task was consumed elsewhere (#18406); call handshakeFailure for failed TLS completion events, timeouts and early closes (#18323, #18363)
  • Include TrustManager / KeyManager instances in TLS session id context computations (#18256)
  • ReferenceCountedOpenSslEngine: query SSL_pending lazily in unwrap (#18376); share enabled protocols (#18388); skip the renegotiation check for servers on BoringSSL and AWS-LC (#18337)
  • DNS resolver: evict cache entries when expiration tasks are cancelled (#18389); only mirror 127.0.0.1 to the IPv6 loopback in DnsQueryContextManager (#18263)
  • Fix the gathering-writes byte limit being ignored after the first buffer (#18405); avoid redundant flush scheduling after draining NIO writes (#18296)
  • Keep adaptive buffer sizes within configured bounds (#18358); notify LeakListener for every detected leak (#18324)
  • HAProxy: HAProxyMessageEncoder rejects v2 headers longer than 65535 bytes (#18428)
  • Avoid classloader leaks via shared exception instances (#18342, #18338)

netty-tcnative is unchanged. netty-bom:4.2.21.Final still declares <tcnative.version>2.0.85.Final</tcnative.version>, the version Pulsar already uses. netty-tcnative 2.0.86.Final was published on the same day, but Netty pairs it with the next release rather than with 4.2.21.Final, so this PR doesn't pick it up.

Modifications

  • gradle/libs.versions.toml: netty 4.2.20.Final → 4.2.21.Final
  • Update the bundled jar lists in distribution/server/src/assemble/LICENSE.bin.txt and distribution/shell/src/assemble/LICENSE.bin.txt to the new version

The netty-bom artifact list is the same in 4.2.20.Final and 4.2.21.Final, so only version strings change in the LICENSE.bin.txt files.

Verifying this change

  • Make sure that the change passes the CI checks.

This change is already covered by existing tests. In addition, ./gradlew checkBinaryLicense --rerun was run locally to confirm that the LICENSE.bin.txt entries for both the server and shell distributions match the bundled jars, and ./gradlew quickCheck passes.

Does this pull request potentially affect one of the following parts:

If the box was checked, please highlight the changes

  • Dependencies (add or upgrade a dependency)
  • The public API
  • The schema
  • The default values of configurations
  • The threading model
  • The binary protocol
  • The REST endpoints
  • The admin CLI options
  • The metrics
  • Anything that affects deployment

Netty is upgraded from 4.2.20.Final to 4.2.21.Final.

Sorry, something went wrong.

Uh oh!

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

All reactions
@lhotari
[improve][build] Upgrade Netty to 4.2.21.Final
a5ec6ef
Assisted-by: Claude Code (claude-opus-5-5)
@lhotari
lhotari requested review from Denovo1998, Technoboy-, codelipenghui, dao-jun, merlimat and nodece November 17, 2026 17:49
@lhotari lhotari added the release/5.0.2 label Nov 17, 2026
codelipenghui
codelipenghui approved these changes Nov 17, 2026
View reviewed changes
@lhotari
lhotari merged commit 36cf65b into apache:master Nov 17, 2026
81 of 83 checks passed

Uh oh!

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

lhotari added a commit that referenced this pull request Nov 17, 2026
@lhotari
[improve][build] Upgrade Netty to 4.2.21.Final to restore the aarch64…
4591788
… glibc floor and pick up bug fixes (#27654)

(cherry picked from commit 36cf65b)
@lhotari lhotari added the cherry-picked/branch-5.0 label Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@codelipenghui codelipenghui codelipenghui approved these changes
@merlimat merlimat Awaiting requested review from merlimat
@nodece nodece Awaiting requested review from nodece
@dao-jun dao-jun Awaiting requested review from dao-jun
@Technoboy- Technoboy- Awaiting requested review from Technoboy-
@Denovo1998 Denovo1998 Awaiting requested review from Denovo1998

Uh oh!

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

Assignees

No one assigned

Labels

cherry-picked/branch-5.0 release/5.0.2

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

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

2 participants

@lhotari @codelipenghui
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.