Skip to content

[Server] Bump Vert.x to 5.2.2 and drop the unused vertx-web dependency - #2035

Closed
s-maling-celonis wants to merge 1 commit into
unitycatalog:mainfrom
s-maling-celonis:vertx-5
Closed

s-maling-celonis wants to merge 1 commit into
unitycatalog:mainfrom
s-maling-celonis:vertx-5

Conversation

@s-maling-celonis

Copy link
Copy Markdown
Contributor

PR Checklist

  • A description of the changes is added to the description of this PR.
  • If there is a related issue, make sure it is linked to this PR.
  • If you've fixed a bug or added code that should be tested, add tests!
  • If you've added or modified a feature, documentation in docs is updated

Description of changes

  • Bump vertx-core and vertx-web-client from 4.5.34 to 5.2.2.
  • Remove vertx-web. Nothing imports io.vertx.ext.web outside the client package.
  • Bump nettyVersion from 4.2.18 to 4.2.19. Vert.x 5.2.2 pulls in Netty 4.2.19 modules, so without this change the classpath would mix netty-all 4.2.18 with 4.2.19 modules.
  • Update URLTranscoderVerticle and its test for the Vert.x 5 API.

Why:

  • Netty alignment. Vert.x 4.5 is built against Netty 4.1, but the server pins Netty 4.2 for Armeria. That means the URL transcoder, which handles every client request, runs on a Netty generation Vert.x 4.5 wasn't built for. Vert.x 5 is built on Netty 4.2.
  • Support. 4.5.x is maintenance-only, and new fixes land on 5.x first.

Code changes:

  • HttpServer.listen(port, handler) is removed in Vert.x 5, so the code now uses listen(port).onComplete(...). It still completes or fails the start promise the same way, so a bind failure still fails deployment.
  • The pool size moved from WebClientOptions.setMaxPoolSize to PoolOptions.setHttp1MaxSize, which is passed to WebClient.create. Vert.x 5 still defaults to 5 connections, so dropping the setting would quietly cap the proxy below the Armeria blocking pool.

No user-facing behavior change.

Testing:

  • build/sbt "server/testOnly io.unitycatalog.server.URLTranscoderVerticleTest" on JDK 17: 7/7 pass. This covers the pool cap, a pool larger than the Vert.x default, and failed deployment when the port is taken.
  • build/sbt javafmtCheckAll passes.
  • Server runtime classpath: all Vert.x artifacts at 5.2.2, all Netty modules at 4.2.19.Final, and no Vert.x 4 artifacts.

🤖 Generated with Claude Code

Vert.x 4.5 is built against Netty 4.1, but the server pins Netty 4.2
for Armeria, so the URL transcoder in front of every request runs on a
Netty generation Vert.x 4.5 was not built for. Vert.x 5 is built on
Netty 4.2. The 4.5 line is also maintenance-only.

Vert.x 5.2.2 brings Netty 4.2.19 modules, so nettyVersion moves from
4.2.18 to 4.2.19 to keep netty-all on the same patch release.

Two API changes in URLTranscoderVerticle (and the same one in its
test):
- HttpServer.listen(port, handler) is gone; use listen(port) and
  onComplete.
- The connection pool size moved from WebClientOptions.setMaxPoolSize
  to PoolOptions.setHttp1MaxSize, passed to WebClient.create. The
  Vert.x 5 default is still 5, so dropping it would silently cap the
  proxy below the Armeria blocking pool.

Nothing imports io.vertx.ext.web outside the client package, so
vertx-web is removed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: s-maling-celonis <[email protected]>
@yili-db

yili-db commented Oct 25, 2026

Copy link
Copy Markdown
Collaborator

/review

@yili-db

yili-db commented Oct 25, 2026

Copy link
Copy Markdown
Collaborator

5.2.2 is still too fresh at this moment. I'll let the PR wait for a while before merging it.

@yili-db

yili-db commented Oct 26, 2026

Copy link
Copy Markdown
Collaborator

Actually, #1979 is going to remove it.

@s-maling-celonis

Copy link
Copy Markdown
Contributor Author

Actually, #1979 is going to remove it.

Yes, this was just to show the alternative, now we are happy with the direction of removing vertx, I will close this PR.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants