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

Extension incompatible with Quarkus 3.4.0 #165

Closed
gsmet opened this issue Sep 8, 2023 · 10 comments · Fixed by #168
Closed

Extension incompatible with Quarkus 3.4.0 #165

gsmet opened this issue Sep 8, 2023 · 10 comments · Fixed by #168

Comments

@gsmet
Copy link
Member

gsmet commented Sep 8, 2023

When building the Vault extension with 3.4.0.CR1, we get:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project quarkus-vault: Compilation failure
[ERROR] /home/gsmet/git/quarkus-vault/runtime/src/main/java/io/quarkus/vault/runtime/client/SharedVertxVaultClient.java:[17,32] cannot find symbol
[ERROR]   symbol:   class VertxRecorder
[ERROR]   location: package io.quarkus.vertx.runtime

The VertxRecorder is gone in 3.4.0.

TBH, I'm not completely sure where it's gone, maybe @geoand and @cescoffier know :).

@geoand
Copy link
Contributor

geoand commented Sep 8, 2023

VertxEventBusConsumerRecorder

@cescoffier
Copy link
Contributor

Wait? Why do they need the recorder? I need to check why they do need this recorder.

@cescoffier
Copy link
Contributor

I just checked. I'm a bit worried. It seems they retrieve the vertx instance from the event bus recorder. First it should be on the vertx core recorder and not the event bus one. Then, I don't see why it cannot be accessed using Arc.

If we need a getter, we should consider adding a public API for that.

@kdubb
Copy link
Contributor

kdubb commented Sep 8, 2023

Here is the PR (#109) where we switched to using VertxRecorder.

It seems they retrieve the vertx instance from the event bus recorder

I have no idea where this is happening.

@vsevel
Copy link
Contributor

vsevel commented Sep 14, 2023

where are we on this? is there something to do? if so, what should be done?

@cescoffier
Copy link
Contributor

First we need to understand why the extension cannot use Arc API to retrieve the vertx instance.

@geoand
Copy link
Contributor

geoand commented Sep 14, 2023

If all that is needed is a Vert.x instance, it's easy to get. Let me see if I can open a PR in under 5 minutes :)

@geoand
Copy link
Contributor

geoand commented Sep 14, 2023

Wouldn't #167 do the trick?

@vmargerin
Copy link

Hi @geoand,

VertxRecorder is still used in SharedVertxVaultClient constructor:

public SharedVertxVaultClient(VaultConfigHolder vaultConfigHolder, TlsConfig tlsConfig) {
        super(vaultConfigHolder.getVaultRuntimeConfig().url().orElseThrow(() -> new VaultException("no vault url provided")),
                vaultConfigHolder.getVaultRuntimeConfig().enterprise().namespace(),
                vaultConfigHolder.getVaultRuntimeConfig().readTimeout());
        Vertx vertx = Vertx.newInstance(VertxRecorder.getVertx());
        this.webClient.set(createHttpClient(vertx, vaultConfigHolder.getVaultRuntimeConfig(), tlsConfig));
    }

@geoand
Copy link
Contributor

geoand commented Sep 14, 2023

Good point, I have updated the 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
6 participants