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

Fix Vert.x event bus codec registration #29446

Merged
merged 1 commit into from Nov 24, 2022

Conversation

Ladicek
Copy link
Contributor

@Ladicek Ladicek commented Nov 23, 2022

The EventBusCodecProcessor used to create a map from Jandex Type of message to a DotName of the corresponding codec, and then expose that map as a repeatable MessageCodecBuildItem. When creating each build item, the code used to call Type.toString(), which is never the right thing to do when obtaining a class name from Jandex Type.

With this commit, the map is from type DotName to codec DotName, and the key in the map is obtained by Type.name().

Fixes #29434

The `EventBusCodecProcessor` used to create a map from Jandex `Type`
of message to a `DotName` of the corresponding codec, and then expose
that map as a repeatable `MessageCodecBuildItem`. When creating each
build item, the code used to call `Type.toString()`, which is never
the right thing to do when obtaining a class name from Jandex `Type`.

With this commit, the map is from type `DotName` to codec `DotName`,
and the key in the map is obtained by `Type.name()`.
@mkouba mkouba added the triage/waiting-for-ci Ready to merge when CI successfully finishes label Nov 23, 2022
@quarkus-bot
Copy link

quarkus-bot bot commented Nov 23, 2022

Failing Jobs - Building bba49af

Status Name Step Failures Logs Raw logs
JVM Tests - JDK 11 Build Failures Logs Raw logs
JVM Tests - JDK 17 Build Failures Logs Raw logs
✔️ JVM Tests - JDK 17 MacOS M1
✔️ JVM Tests - JDK 18

Full information is available in the Build summary check run.

Failures

⚙️ JVM Tests - JDK 11 #

- Failing: integration-tests/opentelemetry-reactive-messaging integration-tests/reactive-messaging-hibernate-orm 

📦 integration-tests/opentelemetry-reactive-messaging

io.quarkus.it.opentelemetry.OpenTelemetryTestCase.testProducerConsumerTracing line 74 - More details - Source on GitHub

org.awaitility.core.ConditionTimeoutException: Condition with lambda expression in io.quarkus.it.opentelemetry.OpenTelemetryTestCase was not fulfilled within 1 minutes.
	at org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:167)
	at org.awaitility.core.CallableCondition.await(CallableCondition.java:78)

📦 integration-tests/reactive-messaging-hibernate-orm

io.quarkus.it.kafka.KafkaConnectorTest.testFruits line 50 - More details - Source on GitHub

org.awaitility.core.ConditionTimeoutException: Assertion condition defined as a io.quarkus.it.kafka.KafkaConnectorTest expected: <6> but was: <1> within 10 seconds.
	at org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:167)
	at org.awaitility.core.AssertionCondition.await(AssertionCondition.java:119)

⚙️ JVM Tests - JDK 17 #

- Failing: integration-tests/reactive-messaging-hibernate-orm 

📦 integration-tests/reactive-messaging-hibernate-orm

io.quarkus.it.kafka.KafkaConnectorTest.testFruits line 50 - More details - Source on GitHub

org.awaitility.core.ConditionTimeoutException: Assertion condition defined as a io.quarkus.it.kafka.KafkaConnectorTest expected: <6> but was: <2> within 10 seconds.
	at org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:167)
	at org.awaitility.core.AssertionCondition.await(AssertionCondition.java:119)

@cescoffier cescoffier merged commit d3e22a0 into quarkusio:main Nov 24, 2022
@quarkus-bot quarkus-bot bot added this to the 2.15 - main milestone Nov 24, 2022
@quarkus-bot quarkus-bot bot added kind/bugfix and removed triage/waiting-for-ci Ready to merge when CI successfully finishes labels Nov 24, 2022
@Ladicek Ladicek deleted the fix-eventbus-codec-registration branch November 24, 2022 08:17
@gsmet gsmet modified the milestones: 2.15 - main, 2.14.2.Final Nov 24, 2022
@syr
Copy link

syr commented Nov 28, 2022

Any chance or plan to get it in 2.13 as well? From 2.14 we got many breaking changes thanks to kubernetes-client update, which is why I cannot update atm.

@mkouba
Copy link
Contributor

mkouba commented Nov 28, 2022

Any chance or plan to get it in 2.13 as well? From 2.14 we got many breaking changes thanks to kubernetes-client update, which is why I cannot update atm.

Yes, this fix should land in the next 2.13 release.

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.

Application startup fails using Lombok's @NonNull on a method annotated with @ConsumeEvent
5 participants