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

Mongodb show deprecated property warnings even when property are not used #36775

Closed
jedla97 opened this issue Oct 30, 2023 · 3 comments · Fixed by #37130
Closed

Mongodb show deprecated property warnings even when property are not used #36775

jedla97 opened this issue Oct 30, 2023 · 3 comments · Fixed by #37130
Labels
area/mongodb kind/bug Something isn't working

Comments

@jedla97
Copy link
Contributor

jedla97 commented Oct 30, 2023

Describe the bug

When testing the mongodb code start the warning about deprecated properties are shown. This show automatically even when there are no app properties set up by user. This start in Quarkus 3.5 before that the warn is not show (behavioral added in c4d6bdc).

It's just not appearing on my environment but also on github runners see https://github.com/quarkus-qe/quarkus-startstop/actions/runs/6686078834/job/18165054526

Expected behavior

Not show the warning out of the box if they are not used by user.

Actual behavior

2023-10-30 12:15:50,757 WARN  [io.qua.run.con.DeprecatedRuntimePropertiesRecorder] (main) The 'quarkus.mongodb.native.dns.server-port' config property is deprecated and should not be used anymore
2023-10-30 12:15:50,757 WARN  [io.qua.run.con.DeprecatedRuntimePropertiesRecorder] (main) The 'quarkus.mongodb.native.dns.lookup-timeout' config property is deprecated and should not be used anymore
2023-10-30 12:15:50,757 WARN  [io.qua.run.con.DeprecatedRuntimePropertiesRecorder] (main) The 'quarkus.mongodb.native.dns.log-activity' config property is deprecated and should not be used anymore
2023-10-30 12:15:50,757 WARN  [io.qua.run.con.DeprecatedRuntimePropertiesRecorder] (main) The 'quarkus.mongodb.native.dns.use-vertx-dns-resolver' config property is deprecated and should not be used anymore

How to Reproduce?

Generate application https://code.quarkus.io/d?e=mongodb-client&e=resteasy-reactive&S=io.quarkus.platform%3A3.5&cn=code.quarkus.io this use mongodb-client and resteasy-reactive.

For native run mvn clean verify -Pnative and warnings are shown.

For jvm mvn package and run by java -jar target/quarkus-app/quarkus-run.jar

See that property is not defined grep -rnw . -e 'quarkus.mongodb.native.dns'

Output of uname -a or ver

Linux fedowa 6.5.6-300.fc39.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Oct 6 19:57:21 UTC 2023 x86_64 GNU/Linux

Output of java -version

openjdk version "17.0.7" 2023-04-18 OpenJDK Runtime Environment GraalVM CE 22.3.2 (build 17.0.7+7-jvmci-22.3-b18) OpenJDK 64-Bit Server VM GraalVM CE 22.3.2 (build 17.0.7+7-jvmci-22.3-b18, mixed mode, sharing)

Quarkus version or git rev

3.5

Build tool (ie. output of mvnw --version or gradlew --version)

Apache Maven 3.9.3

Additional information

No response

@jedla97 jedla97 added the kind/bug Something isn't working label Oct 30, 2023
@quarkus-bot
Copy link

quarkus-bot bot commented Oct 30, 2023

/cc @evanchooly (mongodb), @loicmathieu (mongodb)

@independentid
Copy link

I got these warning running in a docker image based on quarkus 3.5 as well. None of these properties are specified in the project.
2023-11-16 17:16:00,947 WARN [io.qua.run.con.DeprecatedRuntimePropertiesRecorder] (main) The 'quarkus.mongodb.native.dns.server-port' config property is deprecated and should not be used anymore
2023-11-16 17:16:00,947 WARN [io.qua.run.con.DeprecatedRuntimePropertiesRecorder] (main) The 'quarkus.mongodb.native.dns.lookup-timeout' config property is deprecated and should not be used anymore
2023-11-16 17:16:00,947 WARN [io.qua.run.con.DeprecatedRuntimePropertiesRecorder] (main) The 'quarkus.mongodb.native.dns.log-activity' config property is deprecated and should not be used anymore
2023-11-16 17:16:00,947 WARN [io.qua.run.con.DeprecatedRuntimePropertiesRecorder] (main) The 'quarkus.mongodb.native.dns.use-vertx-dns-resolver' config property is deprecated and should not be used anymore

@michalvavrik
Copy link
Member

I tried to reproduce it today, this issue was fixed by #37130, now reproducer with 3.5.3 is fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/mongodb kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants