Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Vertx 4.5.1 #38034

Merged
merged 13 commits into from
Jan 5, 2024
Merged

Update to Vertx 4.5.1 #38034

merged 13 commits into from
Jan 5, 2024

Conversation

cescoffier
Copy link
Member

Update to Vert.x 4.5.1 and Netty 4.1.103.Final

  • Known limitations: AWS Lambdas implemented using Servlets are not working anymore. It needs to be investigated.

\CC @Sanne

This comment has been minimized.

Copy link
Member

@gsmet gsmet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I asked a couple of questions.

@@ -29,7 +29,7 @@ public class KeycloakXTestResourceLifecycleManager implements QuarkusTestResourc
private static String KEYCLOAK_SERVER_URL;
private static final String KEYCLOAK_REALM = "quarkus";
private static final String KEYCLOAK_SERVICE_CLIENT = "quarkus-service-app";
private static final String KEYCLOAK_VERSION = System.getProperty("keycloak.version");
private static final String KEYCLOAK_VERSION = System.getProperty("keycloak.version", "23.0.1");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure how this property was supposed to be passed before? @sberyozkin ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without you cannot run the tests from the IDE. It super inconvenient when you need to debug dozens of tests.

I can revert that change, but you can be sure I will redo the same next time I need to debug these tests.

Comment on lines +271 to +276
@Test
@Disabled("Does not work with Vert.x 4.5.1 - to be investigated")
public void testPostTextWithServlet() throws Exception {
testPostTextByEvent("/servlet/hello");
testPostText("/servlet/hello");
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the plan for these?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, the plan is to dive into the depth of undertow and try to understand why the handler is not called anymore. It only happens when used with the virtual server, which I hope to remove at some point (as it breaks every single time).

I already tried to debug it without luck and we need to make progress to meet the deadline.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, thanks for the details.

@gsmet
Copy link
Member

gsmet commented Jan 4, 2024

Also, great work :).

import io.vertx.core.Vertx;
import io.vertx.core.VertxOptions;
import io.vertx.core.WorkerExecutor;
import io.vertx.core.*;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I missed that but we don't want star imports.

Copy link
Member

@gsmet gsmet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM except for the star imports. Sorry for noticing them so late.

This comment has been minimized.

Copy link
Member

@gsmet gsmet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I got rid of the star imports, rebased and force pushed.

Let's wait for CI and merge.

@gsmet gsmet added the triage/waiting-for-ci Ready to merge when CI successfully finishes label Jan 5, 2024
@geoand
Copy link
Contributor

geoand commented Jan 5, 2024

Ah darn, there is now a conflict in the bom :(

@gsmet
Copy link
Member

gsmet commented Jan 5, 2024

I'll fix it once I'm done with my current task.

This class has been removed.
The worker context class has also been removed (used in test).

We now use the ContextInternal class.
The createMessage method signature changed.
…n handler.

As the body may have already been read.
It avoids a race condition when reading the body
This version contains the API for Vert.x 4.5.1.
Note that there is a few change in the Redis low level API. These changes are backward compatible.
This version has been built with Vert.x 4.5.1 and Netty 4.1.103.Final.
This version is using Vert.x 4.5.1 and the Mutiny bindings 3.8.0
This is the version required to work with Vert.x 4.5.1 (due to the API changes in this Vert.x release)
It avoids a potential race condition trying to read the body twice.
When using Undertow, the request body is not read correctly. Something is wrong between Undertow, Quarkus HTTP and the virtual server.
@gsmet
Copy link
Member

gsmet commented Jan 5, 2024

Done!

Copy link

quarkus-bot bot commented Jan 5, 2024

✔️ The latest workflow run for the pull request has completed successfully.

It should be safe to merge provided you have a look at the other checks in the summary.

You can consult the Develocity build scans.

@gsmet gsmet merged commit 76db2af into quarkusio:main Jan 5, 2024
50 checks passed
@quarkus-bot quarkus-bot bot added this to the 3.7 - main milestone Jan 5, 2024
@quarkus-bot quarkus-bot bot removed the triage/waiting-for-ci Ready to merge when CI successfully finishes label Jan 5, 2024
@cescoffier cescoffier deleted the vertx-4.5.1 branch January 15, 2024 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants