Create a quickstart project on quarkus.io with the C* extension;
Disable metrics in application.properties;
Run the native tests with mvn clean verify -Dnative.
Expected outcome: the tests pass.
Observed outcome:
ERROR [io.qua.run.Application] (main) Failed to start application (with profile prod): java.lang.IllegalArgumentException: Can't find class DropwizardMetricsFactory (specified by advanced.metrics.factory.class)
at com.datastax.oss.driver.internal.core.util.Reflection.buildFromConfig(Reflection.java:219)
at com.datastax.oss.driver.internal.core.util.Reflection.buildFromConfig(Reflection.java:108)
at com.datastax.oss.driver.internal.core.context.DefaultDriverContext.buildMetricsFactory(DefaultDriverContext.java:605)
This is due to DropwizardMetricsFactory not being registered for reflection, but it should be since that's the driver's default implementation of MetricsFactory, and it also serves as the de facto no-op implementation when metrics are disabled.
Steps to reproduce:
mvn clean verify -Dnative
.Expected outcome: the tests pass.
Observed outcome:
This is due to
DropwizardMetricsFactory
not being registered for reflection, but it should be since that's the driver's default implementation ofMetricsFactory
, and it also serves as the de facto no-op implementation when metrics are disabled.┆Issue is synchronized with this Jira Task by Unito