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

Vert.x Cache Directory configuration ignored #42313

Closed
frootshoot opened this issue Aug 5, 2024 · 6 comments · Fixed by #42387
Closed

Vert.x Cache Directory configuration ignored #42313

frootshoot opened this issue Aug 5, 2024 · 6 comments · Fixed by #42387
Labels
area/config area/vertx kind/bug Something isn't working triage/needs-feedback We are waiting for feedback.
Milestone

Comments

@frootshoot
Copy link

Describe the bug

the new vertx configuration for cache directory "quarkus.vertx.cache-directory" is being ignored

Expected behavior

When setting "quarkus.vertx.cache-directory" configuration property the vert.x cache directory should use this value

Actual behavior

The configuration option is ignored - this is due to a bad "if" statement in VertxCoreRecorder (lines 336 - 339)

String fileCacheDir = System.getProperty(CACHE_DIR_BASE_PROP_NAME);
if (fileCacheDir != null) {
      fileCacheDir = conf.cacheDirectory().orElse(null);
}

The if statement should read "fileCacheDir == null" - as you only want to use the configuration if the standard vert.x one is NOT set as per the documentation.

How to Reproduce?

Simply start any Quarkus process with the configuration set, and it will be ignored.

Output of uname -a or ver

No response

Output of java -version

No response

Quarkus version or git rev

No response

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

No response

Additional information

No response

Copy link

quarkus-bot bot commented Aug 5, 2024

/cc @gwenneg (cache), @radcortez (config)

@geoand geoand removed the area/cache label Aug 5, 2024
@geoand
Copy link
Contributor

geoand commented Aug 5, 2024

Makes sense!

Would you like to provide a PR fixing the issue?

@frootshoot
Copy link
Author

Makes sense!

Would you like to provide a PR fixing the issue?

Sadly still not in a position to actually provide code fixes yet - working on it ..

@geoand
Copy link
Contributor

geoand commented Aug 5, 2024

No rush!

@geoand geoand added the triage/needs-feedback We are waiting for feedback. label Aug 5, 2024
@geoand
Copy link
Contributor

geoand commented Aug 7, 2024

@frootshoot if you would like us to fix this, that's certainly fine too

@gaol
Copy link
Contributor

gaol commented Aug 8, 2024

I would like to work on this one if nobody is working on it yet as my first code contribution :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/config area/vertx kind/bug Something isn't working triage/needs-feedback We are waiting for feedback.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants