Skip to content

Dependencies: Bump Vertx and Spring boot to next major version#4520

Open
And1sS wants to merge 9 commits into
masterfrom
dependencies-update
Open

Dependencies: Bump Vertx and Spring boot to next major version#4520
And1sS wants to merge 9 commits into
masterfrom
dependencies-update

Conversation

@And1sS
Copy link
Copy Markdown
Collaborator

@And1sS And1sS commented May 28, 2026

🔧 Type of changes

  • new bid adapter
  • bid adapter update
  • new feature
  • new analytics adapter
  • new module
  • module update
  • bugfix
  • documentation
  • configuration
  • dependency update
  • tech debt (test coverage, refactorings, etc.)

@@ -119,19 +118,22 @@ public String name() {
@Override
public void initialize(Promise<Void> initializePromise) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Vertx switched from promises to futures everywhere in version 5. So maybe for consistency we should update our Initializable interface to work with futures instead of promises too.

return breaker.execute(promise -> geoLocationService.lookup(ip, timeout).onComplete(promise));
}

private void circuitOpened() {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why did you remove these logs?

runBlocking(promise -> action.get().onComplete(promise));
}

public <T> void runBlocking(Handler<Promise<T>> action) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Maybe delete the old function and just leave the new one which uses future?

.collect(Collectors.toMap(Cookie::getName, Cookie::getValue));
}

public static String createCookiesHeader(RoutingContext routingContext) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Do we really need to manually create and add cookie header? When I tested locally, Vertx didn't remove the original cookie header from the request.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This is a great question, just not in scope of deps bump. If we decide to get rid of this - this will be done in a separate pr.

assertThat(result.getValue()).usingRecursiveComparison().isEqualTo(expectedResult.getValue());

assertThat(result.getValue()).usingRecursiveComparison()
.withComparatorForType((a, b) -> a.entries().equals(b.entries()) ? 0 : 1, MultiMap.class)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please use .withEqualsForType((a, b) -> a.entries().equals(b.entries()), MultiMap.class) instead of .withComparatorForType. Same in other tests.

vertx.close(context.succeedingThenComplete());
public void tearDown(VertxTestContext context) throws InterruptedException {
vertx.close().onComplete(context.succeedingThenComplete());
context.awaitCompletion(1000, TimeUnit.MILLISECONDS);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Not sure if we need context.awaitCompletion. Vertx documentation says that it's called automatically by the VertxExtension.

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